---
title: "MTColorRampOptions | Mobile sdk | Mobile sdk ios | Ios"
description: "Options used when instantiating a color ramp."
---

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

# MTColorRampOptions

```
public struct MTColorRampOptions : Sendable, Codable
```

Options used when instantiating a color ramp.

-   `[min](#/s:11MapTilerSDK18MTColorRampOptionsV3minSdSgvp)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public var min: Double?
    ```
    
-   `[max](#/s:11MapTilerSDK18MTColorRampOptionsV3maxSdSgvp)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public var max: Double?
    ```
    
-   `[stops](#/s:11MapTilerSDK18MTColorRampOptionsV5stopsSayAA0dE4StopVGvp)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public var stops: [MTColorRampStop]
    ```
    
-   `[init(min:max:stops:)](#/s:11MapTilerSDK18MTColorRampOptionsV3min3max5stopsACSdSg_AGSayAA0dE4StopVGtcfc)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public init(min: Double? = nil, max: Double? = nil, stops: [MTColorRampStop])
    ```
