---
title: "MTSkyColorValue | Mobile sdk | Mobile sdk ios | Ios"
description: "Represents a color or expression for the sky configuration."
---

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

# MTSkyColorValue

```
public enum MTSkyColorValue : Sendable, Codable, Equatable
```

Represents a color or expression for the sky configuration.

-   `[color(_:)](#/s:11MapTilerSDK15MTSkyColorValueO5coloryAcA7MTColorVcACmF)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    case color(MTColor)
    ```
    
-   `[expression(_:)](#/s:11MapTilerSDK15MTSkyColorValueO10expressionyACSayAA0D10ExpressionOGcACmF)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    case expression([MTSkyExpression])
    ```
    
-   `[init(from:)](#/s:Se4fromxs7Decoder_p_tKcfc)`
    
    #### Declaration
    
    Swift
    
    ```
    public init(from decoder: any Decoder) throws
    ```
    
-   `[encode(to:)](#/s:SE6encode2toys7Encoder_p_tKF)`
    
    #### Declaration
    
    Swift
    
    ```
    public func encode(to encoder: Encoder) throws
    ```
    
-   `[color(_:)](#/s:11MapTilerSDK15MTSkyColorValueO5coloryACSo7UIColorCFZ)`
    
    Convenience to wrap a UIKit color.
    
    #### Declaration
    
    Swift
    
    ```
    public static func color(_ color: UIColor) -> MTSkyColorValue
    ```
