---
title: "MTNumberOrZoomNumberValues | Mobile sdk | Mobile sdk ios | Ios"
description: "Either a numeric value or zoom-ramped numeric 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.

# MTNumberOrZoomNumberValues

```
public enum MTNumberOrZoomNumberValues : Codable, Sendable
```

Either a numeric value or zoom-ramped numeric values.

-   `[number(_:)](#/s:11MapTilerSDK26MTNumberOrZoomNumberValuesO6numberyACSdcACmF)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    case number(Double)
    ```
    
-   `[ramp(_:)](#/s:11MapTilerSDK26MTNumberOrZoomNumberValuesO4rampyACSayAA06MTZoomG5ValueVGcACmF)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    case ramp(MTZoomNumberValues)
    ```
    
-   `[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
    ```
