---
title: Text.LineStyle.Pattern
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/text/linestyle/pattern
---

# Text.LineStyle.Pattern

The pattern, that the line has.

## Declaration

```swift
struct Pattern
```

## Topics

### Getting line style patterns

- [solid](swiftui/text/linestyle/pattern/solid.md)
- [dot](swiftui/text/linestyle/pattern/dot.md)
- [dash](swiftui/text/linestyle/pattern/dash.md)
- [dashDot](swiftui/text/linestyle/pattern/dashdot.md)
- [dashDotDot](swiftui/text/linestyle/pattern/dashdotdot.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Creating a text line style

- [init(nsUnderlineStyle:)](swiftui/text/linestyle/init(nsunderlinestyle:).md)
- [init(pattern:color:)](swiftui/text/linestyle/init(pattern:color:).md)
