Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat/#43]지도 장소 검색 및 경로 목록 뷰 #44

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

KimHwiSeon
Copy link
Collaborator

PR 요약

새로 부여 받은 UI인 경로 목록 뷰를 제작하였습니다.
지도 장소 검색과 경로 목록 뷰를 팀 작업 파일로 옮겼습니다.

📌 변경 사항

✅ PR check list

지도 검색 부분에서 네이버 지도를 활용해서 수정을 해야하는데, 참고할 사항이나 신경쓰면 좋을 부분이 있으시면 말씀해주세요!

Linked Issue

close #43

Copy link
Member

@mooyoung2309 mooyoung2309 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!

반복되는 View들을 재사용하는 시도를 해보는 것을 추천드려요! 도움이 많이 될것같아요.

Comment on lines 14 to 17
Text("닫기")
.font(Font.custom("Apple SD Gothic Neo", size: 17))
.foregroundColor(Color(red: 1, green: 0.53, blue: 0.53))
.padding(.trailing, 16)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p3;

font는 이후에 디자인 시스템을 반영해주시면 될것같아요!

Comment on lines 15 to 28
HStack{
Image(systemName: "bus")
.resizable()
.frame(width: 20, height: 20)
.foregroundColor(Color(red: 0.34, green: 0.33, blue: 0.86))
.shadow(color: .black.opacity(0.1), radius: 2.5, x: 0, y: 0)
.padding(.leading, 16)
Text("잠실나루역")
.font(
Font.custom("Apple SD Gothic Neo", size: 13)
.weight(.bold)
)
.foregroundColor(Color(red: 0.25, green: 0.25, blue: 0.25))
Text("24125")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p3;

너무 많은 뷰들이 겹쳐있어요. 조금 더 가독성 높게 파일로 분리하거나 함수로 빼거나 구조체로 따로 빼는게 좋아보입니다.

Font.custom("Apple SD Gothic Neo", size: 11)
.weight(.semibold)
)
.foregroundColor(Color(red: 0.49, green: 0.49, blue: 0.49))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p3;

색상값도 이후에 디자인시스템을 적용시키면 될것같아요!

Comment on lines 194 to 198
extension View {
func cornerRadius(_ radius: CGFloat, corners: UIRectCorner) -> some View {
clipShape( RoundedCorner(radius: radius, corners: corners) )
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p3;

extension은 폴더에 따로 분리하는게 좋아보입니다. Shared 폴더에 Extension 폴더를 만들어서 넣으면 좋을것같아요

Comment on lines 200 to 212
struct RoundedCorner: Shape {
var radius: CGFloat = .infinity
var corners: UIRectCorner = .allCorners

func path(in rect: CGRect) -> Path {
let path = UIBezierPath(
roundedRect: rect,
byRoundingCorners: corners,
cornerRadii: CGSize(width: radius, height: radius)
)
return Path(path.cgPath)
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p3;

이친구도 디자인시스템이라는 폴더를 만들어서 공용 뷰를 관리하는게 좋아보입니다.

Comment on lines 78 to 92
// else{
// //mark: live location button
// Button{
// //mark : setting map region
// if let coordinate = locationManager.userLocaiton?.coordinate{
// locationManager.mapView.region = .init(center: coordinate, latitudinalMeters: 1000, longitudinalMeters: 1000)
// locationManager.addDraggablePin(coordinate: coordinate)
// locationManager.updatePlacemark(location: .init(latitude: coordinate.latitude, longitude: coordinate.longitude))
//
// //mark: navigaiting to mapview
// navigationTag = "MAPVIEW"
// }
// }label:{
// Label{
// Text("Use Current Location")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p2;

안쓰이는 주석은 지우거나, 주석에 대한 설명 주석을 달아놓는게 좋아보입니다.

Comment on lines 8 to 16
import XCTest

final class MapkitUITestsLaunchTests: XCTestCase {

override class var runsForEachTargetApplicationUIConfiguration: Bool {
true
}

override func setUpWithError() throws {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p3;

테스트 파일들의 위치가 이상하네요! 없애거나 위치를 다시한번 확인해주세요!

Comment on lines 56 to 59
func fetchPlaces(value: String){
//mark: fetching places using mklocalsearch and asyc.await
Task{
do{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p5;

이 함수의 설명을 간단하게 해줄수있을까요?

Comment on lines 131 to 132
await MainActor.run(body:{
self.pickedPlaceMark = place
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p5;

MainActor 라는 것이 무엇인지 간단하게 설명이 가능할까요?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] 지도 장소 검색 뷰와 경로 목록 뷰 제작
2 participants