---
title: "MTFlyToOptions | Mobile sdk | Mobile sdk ios | Ios"
description: "Options describing the destination and animation of the flyTo transition."
---

> 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.

# MTFlyToOptions

```
public struct MTFlyToOptions : Sendable, Codable
```

Options describing the destination and animation of the flyTo transition.

-   `[curve](#/s:11MapTilerSDK14MTFlyToOptionsV5curveSdSgvp)`
    
    The zooming “curve” that will occur along the flight path.
    
    #### Declaration
    
    Swift
    
    ```
    public var curve: Double?
    ```
    
-   `[minZoom](#/s:11MapTilerSDK14MTFlyToOptionsV7minZoomSdSgvp)`
    
    The zero-based zoom level at the peak of the flight path.
    
    #### Declaration
    
    Swift
    
    ```
    public var minZoom: Double?
    ```
    
-   `[speed](#/s:11MapTilerSDK14MTFlyToOptionsV5speedSdSgvp)`
    
    The average speed of the animation defined in relation to curve.
    
    #### Declaration
    
    Swift
    
    ```
    public var speed: Double?
    ```
    
-   `[screenSpeed](#/s:11MapTilerSDK14MTFlyToOptionsV11screenSpeedSdSgvp)`
    
    The average speed of the animation measured in screenfuls per second, assuming a linear timing curve.
    
    #### Declaration
    
    Swift
    
    ```
    public var screenSpeed: Double?
    ```
    
-   `[maxDuration](#/s:11MapTilerSDK14MTFlyToOptionsV11maxDurationSdSgvp)`
    
    The animation’s maximum duration, measured in milliseconds.
    
    #### Declaration
    
    Swift
    
    ```
    public var maxDuration: Double?
    ```
    
-   `[init(curve:minZoom:speed:screenSpeed:maxDuration:)](#/s:11MapTilerSDK14MTFlyToOptionsV5curve7minZoom5speed11screenSpeed11maxDurationACSdSg_A4Itcfc)`
    
    Initializes the options.
    
    #### Declaration
    
    Swift
    
    ```
    public init(
        curve: Double? = nil,
        minZoom: Double? = nil,
        speed: Double? = nil,
        screenSpeed: Double? = nil,
        maxDuration: Double? = nil
    )
    ```
