Skip to content

Commit 833a1db

Browse files
Fix bouncy animation on older Swift versions (#395)
1 parent 67fe89c commit 833a1db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DemoAppSwiftUI/AppleMessageComposerView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ struct AppleMessageComposerView<Factory: ViewFactory>: View, KeyboardReadable {
6060
VStack(spacing: 0) {
6161
HStack(alignment: .bottom) {
6262
Button {
63-
withAnimation(.bouncy) {
63+
withAnimation(.interpolatingSpring(stiffness: 170, damping: 25)) {
6464
switch state {
6565
case .initial:
6666
listScale = 1
@@ -285,7 +285,7 @@ struct ComposerActionsView: View {
285285
}
286286
.edgesIgnoringSafeArea(.all)
287287
.onTapGesture {
288-
withAnimation(.bouncy) {
288+
withAnimation(.interpolatingSpring(stiffness: 170, damping: 25)) {
289289
switch state {
290290
case .initial:
291291
listScale = 1

0 commit comments

Comments
 (0)