---
title: "MTGesture | Mobile sdk | Mobile sdk ios | Ios"
description: "Defines gestures behaviour."
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# MTGesture

```
@MainActor
public protocol MTGesture
```

Defines gestures behaviour.

-   `[type](#/s:11MapTilerSDK9MTGestureP4typeAA0D4TypeOvp)`
    
    Type of the gesture.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    var type: MTGestureType { get }
    ```
    
-   `[disable()](#/s:11MapTilerSDK9MTGestureP7disableyyYaF)` Asynchronous
    
    Disables the gesture.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    func disable() async
    ```
    
-   `[enable()](#/s:11MapTilerSDK9MTGestureP6enableyyYaF)` Asynchronous
    
    Enables the gesture.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    func enable() async
    ```
