The technique to use for aligning the text.
- iOS 2.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
This property applies to the both the main text string and the placeholder string. The default value of this property is
If you are using styled text, assigning a new value to this property causes the text alignment to be applied to the entire string in the
attributed property. If you want to apply the alignment to only a portion of the text, create a new attributed string with the desired style information and associate it with the text field.