---
title: "MTStringOrZoomStringValues | Mobile sdk | Mobile sdk ios | Ios"
description: "Either a string value or zoom-ramped string values."
---

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

# MTStringOrZoomStringValues

```
public enum MTStringOrZoomStringValues : Codable, Sendable
```

Either a string value or zoom-ramped string values.

-   `[string(_:)](#/s:11MapTilerSDK26MTStringOrZoomStringValuesO6stringyACSScACmF)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    case string(String)
    ```
    
-   `[ramp(_:)](#/s:11MapTilerSDK26MTStringOrZoomStringValuesO4rampyACSayAA06MTZoomG5ValueVGcACmF)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    case ramp(MTZoomStringValues)
    ```
    
-   `[uiColor(_:)](#/s:11MapTilerSDK26MTStringOrZoomStringValuesO7uiColoryACSo7UIColorCcACmF)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    case uiColor(UIColor)
    ```
    
-   `[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: any Encoder) throws
    ```
    

[](#/Union%20helper%20types%20for%20encoding%20mixed-value%20options)

### Union helper types for encoding mixed-value options

-   `[init(_:)](#/s:11MapTilerSDK26MTStringOrZoomStringValuesOyACSo7UIColorCcfc)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    init(_ color: UIColor)
    ```
