---
title: "MTOfflineCoverageInputs | Mobile sdk | Mobile sdk ios | Ios"
description: "Holds normalized and validated coverage input parameters required for calculating tile coverage."
---

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

# MTOfflineCoverageInputs

```
public struct MTOfflineCoverageInputs : Equatable
```

Holds normalized and validated coverage input parameters required for calculating tile coverage.

-   `[scheme](#/s:11MapTilerSDK23MTOfflineCoverageInputsV6schemeAA0D10TileSchemeOvp)`
    
    The tile scheme (xyz or tms).
    
    #### Declaration
    
    Swift
    
    ```
    public let scheme: MTOfflineTileScheme
    ```
    
-   `[zoomRange](#/s:11MapTilerSDK23MTOfflineCoverageInputsV9zoomRangeAA0d4ZoomH0Vvp)`
    
    The validated zoom range for the download.
    
    #### Declaration
    
    Swift
    
    ```
    public let zoomRange: MTOfflineZoomRange
    ```
    
-   `[tileSize](#/s:11MapTilerSDK23MTOfflineCoverageInputsV8tileSizeAA0d4TileH0Ovp)`
    
    The standardized tile size (e.g., 256 or 512).
    
    #### Declaration
    
    Swift
    
    ```
    public let tileSize: MTOfflineTileSize
    ```
    
-   `[init(scheme:minZoom:maxZoom:tileSize:)](#/s:11MapTilerSDK23MTOfflineCoverageInputsV6scheme7minZoom03maxI08tileSizeACSSSg_S3itKcfc)`
    
    Initializes and normalizes raw inputs into coverage inputs.
    
    Throws
    
    `[MTOfflineCoverageInputError](https://docs.maptiler.com/mobile-sdk/ios/api/Enums/MTOfflineCoverageInputError/)` if validation fails.
    
    #### Declaration
    
    Swift
    
    ```
    public init(scheme: String? = nil, minZoom: Int, maxZoom: Int, tileSize: Int = 512) throws
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>scheme</em></code></td><td><div><p>The scheme string from a source/TileJSON. Defaults to “xyz” if nil.</p></div></td></tr><tr><td><code><em>minZoom</em></code></td><td><div><p>The minimum zoom level requested.</p></div></td></tr><tr><td><code><em>maxZoom</em></code></td><td><div><p>The maximum zoom level requested.</p></div></td></tr><tr><td><code><em>tileSize</em></code></td><td><div><p>The tile size in pixels (e.g., 256 or 512). Defaults to 512.</p></div></td></tr></tbody></table>
