-
Notifications
You must be signed in to change notification settings - Fork 1
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
[#41] BusStopView 그리기 #48
Conversation
TMT/TMT/BusJourney/BusStopView.swift
Outdated
var xCoordinate: Double | ||
var yCoordinate: Double |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저희 지난번에 정했던 것처럼 latitude
, longitude
로 수정 부탁드립니다 ~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정 완료했습니다~!
@ObservedObject var locationManager: LocationManager | ||
@ObservedObject var busStopSearchViewModel: BusStopSearchViewModel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
현재 저희 view 계층이, search -> map
으로 이루어져 있습니다.
그리고 두 화면에서 모두 딱 이 두 개의 모델을 필요로 해요. (LocationManager
, BusStopSearchViewModel
)
그래서 최상위 view인 searchView에 @EnvironmentObject
로 선언해두고 하위 view에 주입해서 사용하려고 해요~
이 부분은 현재 PR까지 반영되고, view 연결하는 과정에서 제가 수정하겠습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵!
TMT/TMT/BusJourney/BusStopView.swift
Outdated
struct BusStopView: View { | ||
@ObservedObject var locationManager: LocationManager | ||
@ObservedObject var busStopSearchViewModel: BusStopSearchViewModel | ||
@State private var items: [Coordinate] = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
items
보다는 어떤 데이터를 담고 있는지 명확하게 나타내는 변수명이면 좋을 것 같아요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정완료하였습니다!
.padding(.trailing, 15.48) | ||
.padding(.top, 23.91) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
혹시 Figma에서도 padding 값이 소수점으로 나와 있나요 🤔??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네 맞습니당
hmm .. 해당 뷰가 나타내는 걸 생각했을 때는 BusStopView과 MapView 모두 조금 아쉬운 느낌이 드는 것 같네요 .. 그치만 현재 하이파이에서 해당 뷰를 BusStopView으로 표현하고 있다면 통일해봅시다 ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다 ~
📝 작업 내용
스크린샷 (선택)
💬 리뷰 요구사항(선택)