Skip to content

Commit

Permalink
Fix bouncy animation on older Swift versions
Browse files Browse the repository at this point in the history
  • Loading branch information
testableapple committed Nov 8, 2023
1 parent 67fe89c commit 5866a78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DemoAppSwiftUI/AppleMessageComposerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ struct AppleMessageComposerView<Factory: ViewFactory>: View, KeyboardReadable {
VStack(spacing: 0) {
HStack(alignment: .bottom) {
Button {
withAnimation(.bouncy) {
withAnimation(.interpolatingSpring(stiffness: 170, damping: 25)) {
switch state {
case .initial:
listScale = 1
Expand Down Expand Up @@ -285,7 +285,7 @@ struct ComposerActionsView: View {
}
.edgesIgnoringSafeArea(.all)
.onTapGesture {
withAnimation(.bouncy) {
withAnimation(.interpolatingSpring(stiffness: 170, damping: 25)) {
switch state {
case .initial:
listScale = 1
Expand Down

0 comments on commit 5866a78

Please sign in to comment.