multilineTextAlignment(strategy:)
A modifier for the default text alignment strategy in the view hierarchy.
Declaration
nonisolated func multilineTextAlignment(strategy: Text.AlignmentStrategy) -> some View
Discussion
To control the alignment explicitly at a view level, choose the layoutBased mode and set the multilineTextAlignment to the appropriate value.