---
title: "MTHaloStop | Mobile sdk | Mobile sdk ios | Ios"
description: "One stop in the halo radial gradient: position in [0,1] and color."
---

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

# MTHaloStop

```
public struct MTHaloStop : Sendable, Codable
```

One stop in the halo radial gradient: position in \[0,1\] and color.

-   `[position](#/s:11MapTilerSDK10MTHaloStopV8positionSdvp)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public var position: Double
    ```
    
-   `[color](#/s:11MapTilerSDK10MTHaloStopV5colorAA7MTColorVvp)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public var color: MTColor
    ```
    
-   `[init(position:color:)](#/s:11MapTilerSDK10MTHaloStopV8position5colorACSd_AA7MTColorVtcfc)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public init(position: Double, color: MTColor)
    ```
    
-   `[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
    ```
