---
title: "MTSpacePath | Mobile sdk | Mobile sdk ios | Ios"
description: "Path-based configuration for cubemap files."
---

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

# MTSpacePath

```
public struct MTSpacePath : Sendable, Codable
```

Path-based configuration for cubemap files.

This fetches all images from a path, this assumes all files are named px, nx, py, ny, pz, nz and suffixed with the appropriate extension specified in format.

-   `[baseUrl](#/s:11MapTilerSDK11MTSpacePathV7baseUrl10Foundation3URLVvp)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public var baseUrl: URL
    ```
    
-   `[format](#/s:11MapTilerSDK11MTSpacePathV6formatSSSgvp)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public var format: String?
    ```
    
-   `[init(baseUrl:format:)](#/s:11MapTilerSDK11MTSpacePathV7baseUrl6formatAC10Foundation3URLV_SSSgtcfc)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public init(baseUrl: URL, format: String? = nil)
    ```
