Skip to content

Commit 0a33e9e

Browse files
committed
update animation style
1 parent 9fdb709 commit 0a33e9e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CriticalMapsKit/Sources/ChatFeature/ChatFeatureView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public struct ChatView: View {
4848
}
4949
.listRowBackground(Color(.backgroundPrimary))
5050
.listStyle(PlainListStyle())
51-
.accessibleAnimation(.easeOut, value: viewStore.messages)
51+
.accessibleAnimation(.spring, value: viewStore.messages)
5252
}
5353
}
5454

CriticalMapsKit/Sources/ChatFeature/ChatInputView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public struct BasicInputView: View {
5555
viewStore.isSendButtonDisabled ? Color(.border) : .blue
5656
}
5757
)
58-
.accessibleAnimation(.easeOut(duration: 0.13), value: viewStore.isSendButtonDisabled)
58+
.accessibleAnimation(.spring(duration: 0.13), value: viewStore.isSendButtonDisabled)
5959
.accessibilityLabel(Text(L10n.Chat.send))
6060
.frame(width: 38, height: 38)
6161
.overlay(

CriticalMapsKit/Sources/SwiftUIHelpers/Modifier.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ public extension View {
2020
struct MyModifier_Previews: PreviewProvider {
2121
static var previews: some View {
2222
Text("Hello, world!")
23-
.modifier(AccessibleAnimation(animation: .easeOut, value: 0))
23+
.modifier(AccessibleAnimation(animation: .spring, value: 0))
2424
}
2525
}

0 commit comments

Comments
 (0)