---
title: "MTHaloOption | Mobile sdk | Mobile sdk ios | Ios"
description: "Option that can enable default halo or configure it."
---

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

# MTHaloOption

```
public enum MTHaloOption : Sendable, Codable
```

Option that can enable default halo or configure it.

-   `[enabled(_:)](#/s:11MapTilerSDK12MTHaloOptionO7enabledyACSbcACmF)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    case enabled(Bool)
    ```
    
-   `[config(_:)](#/s:11MapTilerSDK12MTHaloOptionO6configyAcA0D0VcACmF)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    case config(MTHalo)
    ```
    
-   `[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: Encoder) throws
    ```
