---
title: "MTSource | Mobile sdk | Mobile sdk ios | Ios"
description: "Protocol requirements for all types of Sources."
---

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

# MTSource

```
public protocol MTSource : AnyObject, MTMapViewContent, Sendable
```

Protocol requirements for all types of Sources.

-   `[identifier](#/s:11MapTilerSDK8MTSourceP10identifierSSvp)`
    
    Unique id of the source.
    
    #### Declaration
    
    Swift
    
    ```
    var identifier: String { get set }
    ```
    
-   `[url](#/s:11MapTilerSDK8MTSourceP3url10Foundation3URLVSgvp)`
    
    URL pointing to the source resource.
    
    #### Declaration
    
    Swift
    
    ```
    var url: URL? { get set }
    ```
    
-   `[type](#/s:11MapTilerSDK8MTSourceP4typeAA0D4TypeOvp)`
    
    Type of the source.
    
    #### Declaration
    
    Swift
    
    ```
    var type: MTSourceType { get }
    ```
