-
Notifications
You must be signed in to change notification settings - Fork 3
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] 2x2 가장 가까운 버스정류장 보여주는 위젯 기능 #253
Conversation
private let useCase = NearByStopUseCase( | ||
stationListRepository: DefaultStationListRepository(), | ||
locationService: DefaultLocationService() | ||
) |
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.
@yuhaeun-la
보통 DIContainer를 통해서 repository랑 service를 넣어주는 방식으로 그동안 작업해왔는데, 이렇게 직접적으로 넣어주는 것에 대해서 어떻게 생각하시나요? 이 방식이 잘못된거라면, @injected ~ usecase ~ 하고, DIContainer에서 register 시켜주는 것으로 변경해볼게요 !
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.
저희가 클린아키텍쳐를 택하고 있기 때문에 이렇게 직접적으로 연결해주는것보다 의존성을 주입해주는 방식을 사용하는게 더 좋아보입니다 !
static func nanumHeavySU(size: CGFloat) -> Font { | ||
Nanum.heavy.swiftUIFont(size: size) | ||
} | ||
} |
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.
앗 저도 Extension Font +넣었어요 ~ 다음에 합쳐요
func getTimeline( | ||
in context: Context, | ||
completion: @escaping (Timeline<NearByStopEntry>) -> Void | ||
) { | ||
// 이때는 위젯에 잘 나옴 | ||
let timeline = Timeline( | ||
entries: [NearByStopEntry.mock], | ||
policy: .never |
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.
이 위젯의 경우엔 policy 값에 .never보단 전에 상의한 .after() 형태로 가는게 좋을 것 같습니다 !
private let useCase = NearByStopUseCase( | ||
stationListRepository: DefaultStationListRepository(), | ||
locationService: DefaultLocationService() | ||
) |
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.
저희가 클린아키텍쳐를 택하고 있기 때문에 이렇게 직접적으로 연결해주는것보다 의존성을 주입해주는 방식을 사용하는게 더 좋아보입니다 !
작업내용
위젯 뷰 작업
현 데브랑 맞춰가기 위해 위젯 1차 PR 입니다.
리뷰요청
관련 이슈
close #239