Swiping up from the bottom of the screen (to switch apps) unintentionally triggers another object’s DragGesture in SwiftUI, iOS
this is about SwiftUI.
I have an object with a DragGesture attached to it that is positioned at the very bottom of the screen in iOS – just above the safe area with the app switcher handle. The drag gesture should only be triggered when dragging from inside of the object + the area of a couple of pixels around it, that’s expected. It correctly doesn’t get triggered while dragging from outside of the object (left, right, top side) but when I try to switch apps by swiping up on the home screen handle at the bottom of the screen the drag gesture gets triggered. Please see the code and the animation. How do I get rid of this behavior?