MultilineTextAlignment
Overrides the default multiline text alignment (center) inherited by descendent components with text.
modifier MultilineTextAlignment
Example
import { MultilineTextAlignment, HorizontalAlignment, Text, VStack } from ui
export var main = VStack(spacing: 10) {
Text("Line 1: Hello\nLine 2: Longer Line")
VStack {
Text("Line 1: Hello\nLine 2: Longer Line")
Text("Line 1: Hello\nLine 2: Longer Line")
} with {
MultilineTextAlignment(HorizontalAlignment.left)
}
}

Constructor
constructor(_ alignment: HorizontalAlignment? = nil)
_ alignment: HorizontalAlignment? = nilAn optional alignment. To let text inherit the default multiline text alignment defined above this modifier provide nil.