---
title: AnyGesture
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/anygesture
---

# AnyGesture

A type-erased gesture.

## Declaration

```swift
@frozen nonisolated struct AnyGesture<Value>
```

## Topics

### Implementing a custom gesture

- [init(_:)](swiftui/anygesture/init(_:).md)

## Relationships

### Conforms To

- [Gesture](swiftui/gesture.md)

## 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)
- [defersSystemGestures(on:)](swiftui/view/deferssystemgestures(on:).md)
- [Gesture](swiftui/gesture.md)
- [HandActivationBehavior](swiftui/handactivationbehavior.md)
- [HandGestureShortcut](swiftui/handgestureshortcut.md)
