---
title: "MTStyleSetterOptions | Mobile sdk | Mobile sdk ios | Ios"
description: "Supporting type to add validation to another style related type."
---

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

# MTStyleSetterOptions

```
public struct MTStyleSetterOptions : Sendable, Codable
```

Supporting type to add validation to another style related type.

-   `[shouldValidate](#/s:11MapTilerSDK20MTStyleSetterOptionsV14shouldValidateSbvp)`
    
    Boolean indicating whether filter conforms to the MapLibre Style Specification.
    
    Disabling validation is a performance optimization that should only be used if you have previously validated the values you will be passing to this function.
    
    #### Declaration
    
    Swift
    
    ```
    public var shouldValidate: Bool
    ```
    
-   `[init(shouldValidate:)](#/s:11MapTilerSDK20MTStyleSetterOptionsV14shouldValidateACSb_tcfc)`
    
    Initializes the setter options.
    
    #### Declaration
    
    Swift
    
    ```
    public init(shouldValidate: Bool)
    ```
