Skip to content

Commit

Permalink
feat: change spring duration to 0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
faultables committed Nov 13, 2024
1 parent 75b6898 commit e914f9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flo/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ struct ContentView: View {
}
}
.offset(y: isPlayerExpanded ? 0 : UIScreen.main.bounds.height)
.animation(.spring(), value: isPlayerExpanded)
.animation(.spring(duration: 0.2), value: isPlayerExpanded)

VStack {
Spacer()
Expand All @@ -72,7 +72,7 @@ struct ContentView: View {
.shadow(radius: 10)
.opacity(playerViewModel.hasNowPlaying() ? 1 : 0)
.offset(y: isPlayerExpanded ? UIScreen.main.bounds.height : 0)
.animation(.spring(), value: isPlayerExpanded)
.animation(.spring(duration: 0.2), value: isPlayerExpanded)
.onTapGesture {
self.isPlayerExpanded = true
}
Expand Down

0 comments on commit e914f9c

Please sign in to comment.