Skip to content

Conversation

@w0o0kgit
Copy link
Collaborator

🦔 iOS Pull Request

👻 구현한 내용

  • 날짜 선택(DatePicker)
  • 조회/전날 버튼

🐦‍🔥 새롭게 알게 된 내용

  • Combine은 어렵다..
  • View → ViewModel: load.send(date)
  • ViewModel → View: @published movies/isLoading/errorMessage

📸 구현화면

구현 내용 17
GIF

☘️ 리뷰 포인트

@w0o0kgit w0o0kgit self-assigned this Dec 17, 2025
Copy link
Collaborator

@y-eonee y-eonee left a comment

Choose a reason for hiding this comment

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

굿

init() {
let client = NetworkClient()
let repo = BoxOfficeRepository(client: client)
_vm = StateObject(wrappedValue: BoxOfficeViewModel(repo: repo))
Copy link
Collaborator

Choose a reason for hiding this comment

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

오 이건뭐에요?

Comment on lines +119 to +136
private extension Date {
var yyyyMMdd: String {
let f = DateFormatter()
f.calendar = .current
f.locale = .init(identifier: "ko_KR")
f.timeZone = .current
f.dateFormat = "yyyyMMdd"
return f.string(from: self)
}
}

private extension Int {
var formattedWithSeparator: String {
let f = NumberFormatter()
f.numberStyle = .decimal
return f.string(from: NSNumber(value: self)) ?? "\(self)"
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

여기 익스텐션은 따로 public하게 안빼고 프라이빗으로 한 이유가있나요

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.

3 participants