---
title: "MTLineCap | Mobile sdk | Mobile sdk ios | Ios"
description: "The display of line endings."
---

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

# MTLineCap

```
public enum MTLineCap : String
```

The display of line endings.

-   `[butt](#/s:11MapTilerSDK9MTLineCapO4buttyA2CmF)`
    
    A cap with a squared-off end which is drawn to the exact endpoint of the line.
    
    #### Declaration
    
    Swift
    
    ```
    case butt
    ```
    
-   `[round](#/s:11MapTilerSDK9MTLineCapO5roundyA2CmF)`
    
    A cap with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line’s width and centered on the endpoint of the line.
    
    #### Declaration
    
    Swift
    
    ```
    case round
    ```
    
-   `[square](#/s:11MapTilerSDK9MTLineCapO6squareyA2CmF)`
    
    A cap with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line’s width.
    
    #### Declaration
    
    Swift
    
    ```
    case square
    ```
