Skip to content

Commit

Permalink
Fix bouncy animation on older Swift versions (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
testableapple authored Nov 9, 2023
1 parent 67fe89c commit 833a1db
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 833a1db

Please sign in to comment.