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] 2x2 가장 가까운 버스정류장 보여주는 위젯 기능 #253

Closed
wants to merge 5 commits into from

Conversation

isakatty
Copy link
Contributor

작업내용

위젯 뷰 작업
현 데브랑 맞춰가기 위해 위젯 1차 PR 입니다.

리뷰요청

관련 이슈

close #239

@isakatty isakatty linked an issue Apr 23, 2024 that may be closed by this pull request
2 tasks
@isakatty isakatty self-assigned this Apr 23, 2024
@isakatty isakatty added the ✨ 기능추가 새로운 기능 추가 label Apr 23, 2024
@isakatty isakatty changed the title Feat/#239 [Feat] 2x2 가장 가까운 버스정류장 보여주는 위젯 기능 Apr 23, 2024
@yuhaeun-la yuhaeun-la added this to the v1.3.0 milestone Apr 23, 2024
Comment on lines +18 to +21
private let useCase = NearByStopUseCase(
stationListRepository: DefaultStationListRepository(),
locationService: DefaultLocationService()
)
Copy link
Contributor Author

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 시켜주는 것으로 변경해볼게요 !

Copy link
Contributor

Choose a reason for hiding this comment

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

저희가 클린아키텍쳐를 택하고 있기 때문에 이렇게 직접적으로 연결해주는것보다 의존성을 주입해주는 방식을 사용하는게 더 좋아보입니다 !

@isakatty isakatty requested a review from yuhaeun-la April 23, 2024 11:07
@yuhaeun-la yuhaeun-la closed this Apr 23, 2024
static func nanumHeavySU(size: CGFloat) -> Font {
Nanum.heavy.swiftUIFont(size: size)
}
}
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

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

이 위젯의 경우엔 policy 값에 .never보단 전에 상의한 .after() 형태로 가는게 좋을 것 같습니다 !

Comment on lines +18 to +21
private let useCase = NearByStopUseCase(
stationListRepository: DefaultStationListRepository(),
locationService: DefaultLocationService()
)
Copy link
Contributor

Choose a reason for hiding this comment

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

저희가 클린아키텍쳐를 택하고 있기 때문에 이렇게 직접적으로 연결해주는것보다 의존성을 주입해주는 방식을 사용하는게 더 좋아보입니다 !

@yuhaeun-la yuhaeun-la deleted the feat/#239 branch May 10, 2024 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ 기능추가 새로운 기능 추가
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat] 2x2 widget deeplink 구현
2 participants