Skip to content

Commit

Permalink
feat: 위로 드래그 막기
Browse files Browse the repository at this point in the history
  • Loading branch information
jongnan committed Jul 28, 2024
1 parent b874991 commit 499c238
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ public struct RecommendView: View {
.onChanged({ value in
if viewModel.state.recommendMemes.isEmpty { return }

if value.translation.height < 0 { return }

withAnimation(.spring()) {
currentOffsetY = value.translation.height > 180 ? 180 : value.translation.height
}
Expand Down

0 comments on commit 499c238

Please sign in to comment.