We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3ef131 commit 457fdd7Copy full SHA for 457fdd7
Sources/Views/HStackSnapCore.swift
@@ -31,7 +31,6 @@ public struct HStackSnapCore<Content: View>: View {
31
HStack {
32
HStack(spacing: spacing, content: content)
33
.offset(x: scrollOffset, y: .zero)
34
- .animation(.easeOut(duration: 0.2))
35
36
Spacer()
37
}
@@ -125,7 +124,9 @@ public struct HStackSnapCore<Content: View>: View {
125
124
126
127
// Update state
128
- scrollOffset = closestSnapLocation
+ withAnimation(.easeOut(duration: 0.2)) {
+ scrollOffset = closestSnapLocation
129
+ }
130
prevScrollOffset = scrollOffset
131
132
0 commit comments