less sensitive gesture

This commit is contained in:
spaced4ndy 2023-12-01 18:05:15 +04:00
parent ce87c05b4d
commit 49cc76d4ff

View File

@ -91,7 +91,7 @@ struct NewChatView: View {
.fill(Color(uiColor: .systemGroupedBackground))
)
.animation(.easeInOut(duration: 0.3333), value: selection)
.gesture(DragGesture(minimumDistance: 3.0, coordinateSpace: .local)
.gesture(DragGesture(minimumDistance: 20.0, coordinateSpace: .local)
.onChanged { value in
switch(value.translation.width, value.translation.height) {
case (...0, -30...30): // left swipe