Skip to content

Commit 0552de4

Browse files
Improvements to the swipe animation
1 parent 0aff02c commit 0552de4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/StreamChatSwiftUI/ChatChannel/MessageList/MessageContainerView.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ public struct MessageContainerView<Factory: ViewFactory>: View {
9090
isFirst: showsAllInfo,
9191
scrolledId: $scrolledId
9292
)
93-
.animation(nil)
9493
.overlay(
9594
ZStack {
9695
reactionsShown ?
@@ -276,7 +275,7 @@ public struct MessageContainerView<Factory: ViewFactory>: View {
276275
}
277276

278277
private func setOffsetX(value: CGFloat) {
279-
withAnimation {
278+
withAnimation(.easeInOut) {
280279
self.offsetX = value
281280
}
282281
}

0 commit comments

Comments
 (0)