Can you provide your code where you solved this issue? I'm seeing this in my app where I have draggable sheet like this
.sheet {
ScrollView {
Button {
dismiss()
}
}
}
And so when I press and hold on that button and start dragging the sheet down but then let go midway, the sheet bounces back up (as it should) but the button somehow gets triggered and the sheet dismisses anyways, which is annoying.
Setting highPriorityGesture does seem to work, however it also disabled button selection animation, which is not ideal either. Any suggestions?
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: