---
title: "MTStyleSource | Mobile sdk | Mobile sdk ios | Ios"
description: "Represents a tile source extracted from a style JSON."
---

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

# MTStyleSource

```
public struct MTStyleSource : Equatable
```

Represents a tile source extracted from a style JSON.

-   `[id](#/s:11MapTilerSDK13MTStyleSourceV2idSSvp)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public let id: String
    ```
    
-   `[type](#/s:11MapTilerSDK13MTStyleSourceV4typeSSSgvp)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public let type: String?
    ```
    
-   `[url](#/s:11MapTilerSDK13MTStyleSourceV3urlSSSgvp)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public let url: String?
    ```
    
-   `[tiles](#/s:11MapTilerSDK13MTStyleSourceV5tilesSaySSGSgvp)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public let tiles: [String]?
    ```
    
-   `[minZoom](#/s:11MapTilerSDK13MTStyleSourceV7minZoomSiSgvp)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public let minZoom: Int?
    ```
    
-   `[maxZoom](#/s:11MapTilerSDK13MTStyleSourceV7maxZoomSiSgvp)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public let maxZoom: Int?
    ```
    
-   `[init(id:type:url:tiles:minZoom:maxZoom:)](#/s:11MapTilerSDK13MTStyleSourceV2id4type3url5tiles7minZoom03maxK0ACSS_SSSgAJSaySSGSgSiSgAMtcfc)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public init(
        id: String,
        type: String? = nil,
        url: String? = nil,
        tiles: [String]? = nil,
        minZoom: Int? = nil,
        maxZoom: Int? = nil
    )
    ```
