-
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
[#12] 버스 루트 별 정류장 띄우기 #23
Conversation
struct BusStop: Identifiable { | ||
let id = UUID() | ||
let name: String | ||
let latitude: String | ||
let longitude: String |
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.
기존에 사용하던 BusStopInfo
와 차이점이 Identifiable
와 id
뿐인 것 같은데, 따로 선언해서 사용하는 이유가 있나요 !
없다면 기존 구조체에 추가해서 사용하는 것도 좋을 것 같아요 :)
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.
수정했습니다! 확인 부탁드려요
@@ -75,23 +75,16 @@ final class BusStopSearchViewModel: ObservableObject { | |||
} | |||
|
|||
func getNameAndCoordinates(busNum: String) { |
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.
민~ 혹시 이 함수가, 사용자가 입력한 번호에 해당하는 정류장을 뽑아오는 함수인건가요~?
맞다면, BusSearchViewModel
에 있는 searchBusStops
함수와 동일해 보이네요!
사용자가 입력한 버스 번호에 해당하는 정보는, BusSearchViewModel
에 있는 filteredBusStops
변수에 접근해서 사용하면 돼요 :)
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.
수고하셨습니다!
📝 작업 내용
💬 리뷰 요구사항(선택)