Skip to content

Commit

Permalink
fix: 추천 화면 매번 리프레시하도록 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
lina0322 committed Oct 4, 2024
1 parent 1cdd6a3 commit 2229ba9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ public struct RecommendView: View {
)
)
.edgesIgnoringSafeArea(.bottom)
.onAppear {
viewModel.dispatch(type: .viewInitialized)
}
.onChange(of: viewModel.state.isSuccessFetch) {
withAnimation(.spring()) {
currentOffsetY = viewModel.state.isSuccessFetch ? .zero : 20
Expand Down

0 comments on commit 2229ba9

Please sign in to comment.