---
title: "MTTileRange | Mobile sdk | Mobile sdk ios | Ios"
description: "Represents a range of map tiles at a specific zoom level."
---

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

# MTTileRange

```
public struct MTTileRange : Equatable, Sendable
```

Represents a range of map tiles at a specific zoom level.

-   `[minX](#/s:11MapTilerSDK11MTTileRangeV4minXSivp)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public let minX: Int
    ```
    
-   `[maxX](#/s:11MapTilerSDK11MTTileRangeV4maxXSivp)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public let maxX: Int
    ```
    
-   `[minY](#/s:11MapTilerSDK11MTTileRangeV4minYSivp)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public let minY: Int
    ```
    
-   `[maxY](#/s:11MapTilerSDK11MTTileRangeV4maxYSivp)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public let maxY: Int
    ```
    
-   `[zoom](#/s:11MapTilerSDK11MTTileRangeV4zoomSivp)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public let zoom: Int
    ```
    
-   `[init(minX:maxX:minY:maxY:zoom:)](#/s:11MapTilerSDK11MTTileRangeV4minX4maxX0F1Y0G1Y4zoomACSi_S4itcfc)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public init(minX: Int, maxX: Int, minY: Int, maxY: Int, zoom: Int)
    ```
    
-   `[expanded(by:)](#/s:11MapTilerSDK11MTTileRangeV8expanded2byACSi_tF)`
    
    Returns a new `MTTileRange` with the boundaries pushed outwards by the given buffer. Clamps the resulting indices to the valid `[0, 2^Z - 1]` range for the current zoom level.
    
    #### Declaration
    
    Swift
    
    ```
    public func expanded(by buffer: Int) -> MTTileRange
    ```
