<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/GestureMask",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI11GestureMaskV"
  },
  "title" : "GestureMask"
}
-->

# GestureMask

Options that control how adding a gesture to a view affects other gestures
recognized by the view and its subviews.

```
@frozen struct GestureMask
```

## Topics

### Getting gesture options

[`all`](/documentation/SwiftUI/GestureMask/all)

Enable both the added gesture as well as all other gestures on the view
and its subviews.

[`gesture`](/documentation/SwiftUI/GestureMask/gesture)

Enable the added gesture but disable all gestures in the subview
hierarchy.

[`subviews`](/documentation/SwiftUI/GestureMask/subviews)

Enable all gestures in the subview hierarchy but disable the added
gesture.

[`none`](/documentation/SwiftUI/GestureMask/none)

Disable all gestures in the subview hierarchy, including the added
gesture.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)