---
title: "MTColorRampCanvasStripOptions | Mobile sdk | Mobile sdk ios | Ios"
description: "Options for rendering the ramp to a canvas strip."
---

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

# MTColorRampCanvasStripOptions

```
public struct MTColorRampCanvasStripOptions : Sendable, Codable
```

Options for rendering the ramp to a canvas strip.

-   `[horizontal](#/s:11MapTilerSDK29MTColorRampCanvasStripOptionsV10horizontalSbSgvp)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public var horizontal: Bool?
    ```
    
-   `[size](#/s:11MapTilerSDK29MTColorRampCanvasStripOptionsV4sizeSiSgvp)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public var size: Int?
    ```
    
-   `[smooth](#/s:11MapTilerSDK29MTColorRampCanvasStripOptionsV6smoothSbSgvp)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public var smooth: Bool?
    ```
    
-   `[init(horizontal:size:smooth:)](#/s:11MapTilerSDK29MTColorRampCanvasStripOptionsV10horizontal4size6smoothACSbSg_SiSgAGtcfc)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public init(horizontal: Bool? = nil, size: Int? = nil, smooth: Bool? = nil)
    ```
