---
title: "multilineTextAlignment(strategy:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/multilinetextalignment(strategy:)"
---

# multilineTextAlignment(strategy:)

A modifier for the default text alignment strategy in the view hierarchy.

## Declaration

```swift
nonisolated func multilineTextAlignment(strategy: Text.AlignmentStrategy) -> some View

```

## Discussion

Discussion To control the alignment explicitly at a view level, choose the layoutBased mode and set the multilineTextAlignment to the appropriate value.

## See Also

### Multiline text

- [lineLimit(_:)](swiftui/view/linelimit(_:).md)
- [lineLimit(_:reservesSpace:)](swiftui/view/linelimit(_:reservesspace:).md)
- [lineSpacing(_:)](swiftui/view/linespacing(_:).md)
- [multilineTextAlignment(_:)](swiftui/view/multilinetextalignment(_:).md)
