---
title: "MTPitchLimitHelper | Mobile sdk | Mobile sdk ios | Ios"
description: "Sets combination of minimum and maximum pitch."
---

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

# MTPitchLimitHelper

```
public class MTPitchLimitHelper
```

Sets combination of minimum and maximum pitch.

-   `[maxPitch](#/s:11MapTilerSDK18MTPitchLimitHelperC8maxPitchSdSgvp)`
    
    The maximum pitch of the map (0-85).
    
    If not specified, the SDK will look for it in the map options. If not specified there, it defaults to 60.
    
    #### Declaration
    
    Swift
    
    ```
    public var maxPitch: Double?
    ```
    
-   `[minPitch](#/s:11MapTilerSDK18MTPitchLimitHelperC8minPitchSdSgvp)`
    
    The minimum pitch of the map (0-85).
    
    If not specified, the SDK will look for it in the map options. If not specified there, it defaults to 0.
    
    #### Declaration
    
    Swift
    
    ```
    public var minPitch: Double?
    ```
    
-   `[getPitchLimits()](#/s:11MapTilerSDK18MTPitchLimitHelperC14getPitchLimitsACyFZ)`
    
    Returns pitch limit object with no specified limits.
    
    #### Declaration
    
    Swift
    
    ```
    public static func getPitchLimits() -> MTPitchLimitHelper
    ```
    
-   `[getPitchLimitsWith(_:)](#/s:11MapTilerSDK18MTPitchLimitHelperC18getPitchLimitsWithyAcA12MTMapOptionsVFZ)`
    
    Returns pitch limit object constructed from given options object.
    
    #### Declaration
    
    Swift
    
    ```
    public static func getPitchLimitsWith(_ options: MTMapOptions) -> MTPitchLimitHelper
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>options</em></code></td><td><div><p>MTMapOptions object with initial limit options.</p></div></td></tr></tbody></table>
    
-   `[limitPitch(maxPitch:minPitch:)](#/s:11MapTilerSDK18MTPitchLimitHelperC10limitPitch03maxH003minH0ACSd_SdtFZ)`
    
    Returns pitch limit object with the given max pitch and min pitch.
    
    #### Declaration
    
    Swift
    
    ```
    public static func limitPitch(
        maxPitch: Double,
        minPitch: Double
    ) -> MTPitchLimitHelper
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>maxPitch</em></code></td><td><div><p>The maximum pitch of the map (0-85).</p></div></td></tr><tr><td><code><em>minPitch</em></code></td><td><div><p>The minimum pitch of the map (0-85).</p></div></td></tr></tbody></table>
    
-   `[limitMaxPitch(_:)](#/s:11MapTilerSDK18MTPitchLimitHelperC13limitMaxPitchyACSdFZ)`
    
    Returns pitch limit object with the given max pitch.
    
    #### Declaration
    
    Swift
    
    ```
    public static func limitMaxPitch(
        _ maxPitch: Double
    ) -> MTPitchLimitHelper
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>maxPitch</em></code></td><td><div><p>The maximum pitch of the map (0-85).</p></div></td></tr></tbody></table>
    
-   `[limitMinPitch(_:)](#/s:11MapTilerSDK18MTPitchLimitHelperC13limitMinPitchyACSdFZ)`
    
    Returns pitch limit object with the given min pitch.
    
    #### Declaration
    
    Swift
    
    ```
    public static func limitMinPitch(
        _ minPitch: Double
    ) -> MTPitchLimitHelper
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>minPitch</em></code></td><td><div><p>The minimum pitch of the map (0-85).</p></div></td></tr></tbody></table>
    
-   `[isEqualToPitchLimitHelper(_:)](#/s:11MapTilerSDK18MTPitchLimitHelperC014isEqualToPitcheF0ySbACF)`
    
    Returns a Boolean indicating whether the pitch limit object is equal to the receiver.
    
    #### Declaration
    
    Swift
    
    ```
    public func isEqualToPitchLimitHelper(_ pitchLimit: MTPitchLimitHelper) -> Bool
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>pitchLimit</em></code></td><td><div><p>MTPitchLimitHelper object to compare with.</p></div></td></tr></tbody></table>
