Attaches a gesture to the view with a higher precedence than gestures defined by the view.
SDKs
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
Framework
- Swift
UI
Declaration
func highPriorityGesture<T>(_ gesture: T, including mask: Gesture Mask = .all) -> some View where T : Gesture