---
title: "MTDashArrayValue | Mobile sdk | Mobile sdk ios | Ios"
description: "Represents a dash pattern that can be provided as an array of numbers or as a string pattern composed of underscores and spaces (e.g. “___ _ ”)."
---

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

# MTDashArrayValue

```
public enum MTDashArrayValue : Codable, Sendable
```

Represents a dash pattern that can be provided as an array of numbers or as a string pattern composed of underscores and spaces (e.g. “\_\_\_ \_ ”).

-   `[array(_:)](#/s:11MapTilerSDK16MTDashArrayValueO5arrayyACSaySdGcACmF)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    case array([Double])
    ```
    
-   `[pattern(_:)](#/s:11MapTilerSDK16MTDashArrayValueO7patternyACSScACmF)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    case pattern(String)
    ```
    
-   `[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
    ```
