---
title: "defersSystemGestures(on:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/deferssystemgestures(on:)"
---

# defersSystemGestures(on:)

Sets the screen edge from which you want your gesture to take precedence over the system gesture.

## Declaration

```swift
nonisolated func defersSystemGestures(on edges: Edge.Set) -> some View

```

## Parameters

- `edges`: A value that indicates the screen edge from which you want your gesture to take precedence over the system gesture.

## Discussion

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

### Defining custom gestures

- [highPriorityGesture(_:including:)](swiftui/view/highprioritygesture(_:including:).md)
- [highPriorityGesture(_:isEnabled:)](swiftui/view/highprioritygesture(_:isenabled:).md)
- [highPriorityGesture(_:name:isEnabled:)](swiftui/view/highprioritygesture(_:name:isenabled:).md)
- [handGestureShortcut(_:isEnabled:)](swiftui/view/handgestureshortcut(_:isenabled:).md)
- [Gesture](swiftui/gesture.md)
- [AnyGesture](swiftui/anygesture.md)
- [HandActivationBehavior](swiftui/handactivationbehavior.md)
- [HandGestureShortcut](swiftui/handgestureshortcut.md)
