---
title: "Content | Mobile sdk | Mobile sdk ios | Ios"
description: "Insets that describe the stretchable area of the image."
---

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

# Content

```
struct Content : Codable, Equatable, Sendable
```

Insets that describe the stretchable area of the image.

-   `[left](#/s:11MapTilerSDK19MTStyleImageOptionsV7ContentV4leftSdvp)`
    
    Left inset.
    
    #### Declaration
    
    Swift
    
    ```
    public var left: Double
    ```
    
-   `[top](#/s:11MapTilerSDK19MTStyleImageOptionsV7ContentV3topSdvp)`
    
    Top inset.
    
    #### Declaration
    
    Swift
    
    ```
    public var top: Double
    ```
    
-   `[right](#/s:11MapTilerSDK19MTStyleImageOptionsV7ContentV5rightSdvp)`
    
    Right inset.
    
    #### Declaration
    
    Swift
    
    ```
    public var right: Double
    ```
    
-   `[bottom](#/s:11MapTilerSDK19MTStyleImageOptionsV7ContentV6bottomSdvp)`
    
    Bottom inset.
    
    #### Declaration
    
    Swift
    
    ```
    public var bottom: Double
    ```
    
-   `[init(left:top:right:bottom:)](#/s:11MapTilerSDK19MTStyleImageOptionsV7ContentV4left3top5right6bottomAESd_S3dtcfc)`
    
    Creates a new content inset definition.
    
    #### Declaration
    
    Swift
    
    ```
    public init(left: Double, top: Double, right: Double, bottom: Double)
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>left</em></code></td><td><div><p>Left inset.</p></div></td></tr><tr><td><code><em>top</em></code></td><td><div><p>Top inset.</p></div></td></tr><tr><td><code><em>right</em></code></td><td><div><p>Right inset.</p></div></td></tr><tr><td><code><em>bottom</em></code></td><td><div><p>Bottom inset.</p></div></td></tr></tbody></table>
    
-   `[encode(to:)](#/s:SE6encode2toys7Encoder_p_tKF)`
    
    #### Declaration
    
    Swift
    
    ```
    public func encode(to encoder: Encoder) throws
    ```
    
-   `[init(from:)](#/s:Se4fromxs7Decoder_p_tKcfc)`
    
    #### Declaration
    
    Swift
    
    ```
    public init(from decoder: Decoder) throws
    ```
