From 5866a7869ac695d1a521afd1661fe17f9777d3b9 Mon Sep 17 00:00:00 2001 From: Alexey Alter-Pesotskiy Date: Wed, 8 Nov 2023 13:10:42 +0000 Subject: [PATCH] Fix bouncy animation on older Swift versions --- DemoAppSwiftUI/AppleMessageComposerView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DemoAppSwiftUI/AppleMessageComposerView.swift b/DemoAppSwiftUI/AppleMessageComposerView.swift index 3f859952..d49f842d 100644 --- a/DemoAppSwiftUI/AppleMessageComposerView.swift +++ b/DemoAppSwiftUI/AppleMessageComposerView.swift @@ -60,7 +60,7 @@ struct AppleMessageComposerView: View, KeyboardReadable { VStack(spacing: 0) { HStack(alignment: .bottom) { Button { - withAnimation(.bouncy) { + withAnimation(.interpolatingSpring(stiffness: 170, damping: 25)) { switch state { case .initial: listScale = 1 @@ -285,7 +285,7 @@ struct ComposerActionsView: View { } .edgesIgnoringSafeArea(.all) .onTapGesture { - withAnimation(.bouncy) { + withAnimation(.interpolatingSpring(stiffness: 170, damping: 25)) { switch state { case .initial: listScale = 1