defersSystemGestures
Sets the screen edge from which you want your gesture to take precedence over the system gesture.
Declaration
compose().defersSystemGestures({
on: SwiftUI.EdgeSet,
})nonisolated func defersSystemGestures(on edges: Edge.Set) -> some ViewParameters
options.on*SwiftUI.EdgeSet
Discussion
The following code defers the vertical screen edges system gestures of a given canvas.
struct DeferredView: View {
var body: some View {
Canvas()
.defersSystemGestures(on: .vertical)
}
}See also
More in Gestures and input.
- defaultHoverEffectSets the default hover effect to use for views within this view.
- dragConfigurationConfigures a drag session.
- dragContainerA container with draggable views. The drag payload is identifiable. To form the payload, use the identifier of the dragged view inside the container.
- dragContainerSelectionProvides multiple item selection support for drag containers.
- gestureAttaches a gesture to the view with a lower precedence than gestures defined by the view.
- handGestureShortcutAssigns a hand gesture shortcut to the modified control.
- highPriorityGestureAttaches a gesture to the view with a higher precedence than gestures defined by the view.
- hoverEffectApplies a hover effect to this view.
- hoverEffectDisabledAdds a condition that controls whether this view can display hover effects.
- presentationDragIndicatorSets the visibility of the drag indicator on top of a sheet.
- simultaneousGestureAttaches a gesture to the view to process simultaneously with gestures defined by the view.