---
title: "MTSpacePreset | Mobile sdk | Mobile sdk ios | Ios"
description: "Predefined cubemap presets for space backgrounds."
---

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

# MTSpacePreset

```
public enum MTSpacePreset : String, Sendable, Codable, CaseIterable
```

Predefined cubemap presets for space backgrounds.

-   `[space](#/s:11MapTilerSDK13MTSpacePresetO5spaceyA2CmF)`
    
    Dark blue hsl(210, 100%, 4%) background and white stars (transparent background image). Space color changes the background color, stars always stay white.
    
    #### Declaration
    
    Swift
    
    ```
    case space
    ```
    
-   `[stars](#/s:11MapTilerSDK13MTSpacePresetO5starsyA2CmF)`
    
    (default): Black background (image mask), space color changes the stars color, background always stays black.
    
    #### Declaration
    
    Swift
    
    ```
    case stars
    ```
    
-   `[milkyway](#/s:11MapTilerSDK13MTSpacePresetO8milkywayyA2CmF)`
    
    Black half-transparent background with standard milkyway and stars. Space color changes the stars and milkyway color, background always stays black.
    
    #### Declaration
    
    Swift
    
    ```
    case milkyway
    ```
    
-   `[milkywaySubtle](#/s:11MapTilerSDK13MTSpacePresetO14milkywaySubtleyA2CmF)`
    
    Black half-transparent background with subtle milkyway and less stars. Space color changes the stars and milkyway color, background always stays black. Black half-transparent background with standard milkyway and stars. Space color changes the stars and milkyway color, background always stays black.
    
    #### Declaration
    
    Swift
    
    ```
    case milkywaySubtle = "milkyway-subtle"
    ```
    
-   `[milkywayBright](#/s:11MapTilerSDK13MTSpacePresetO14milkywayBrightyA2CmF)`
    
    Black half-transparent background with bright milkyway and more stars. Space color changes the stars and milkyway color, background always stays black.
    
    #### Declaration
    
    Swift
    
    ```
    case milkywayBright = "milkyway-bright"
    ```
    
-   `[milkywayColored](#/s:11MapTilerSDK13MTSpacePresetO15milkywayColoredyA2CmF)`
    
    Full background image with natural space colors. Space color doesn’t change anything (non transparent image).
    
    #### Declaration
    
    Swift
    
    ```
    case milkywayColored = "milkyway-colored"
    ```
