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.
2 parents 30f1b5d + 132781c commit 9b45ef5Copy full SHA for 9b45ef5
Sources/CardStack/CardView.swift
@@ -60,7 +60,7 @@ struct CardView<Direction, Content: View>: View {
60
61
private func swipeDirection(_ geometry: GeometryProxy) -> Direction? {
62
guard let direction = direction(degree) else { return nil }
63
- let threshold = min(geometry.size.width, geometry.size.height) / 2
+ let threshold = min(geometry.size.width, geometry.size.height) * configuration.swipeThreshold
64
let distance = hypot(translation.width, translation.height)
65
return distance > threshold ? direction : nil
66
}
0 commit comments