Sets whether to apply auto-capitalization to this view.
SDKs
- iOS 13.0+
- Mac Catalyst 13.0+
- tvOS 13.0+
- Xcode 11.0+
Framework
- Swift
UI
Declaration
func autocapitalization(_ style: UIText Autocapitalization Type) -> some View
Sets whether to apply auto-capitalization to this view.
SDKs
Framework
func autocapitalization(_ style: UIText Autocapitalization Type) -> some View
func keyboard Type(UIKeyboard Type) -> View
Sets the keyboard type for this view.
func font(Font?) -> View
Sets the default font for text in the view.
func line Limit(Int?) -> View
Sets the maximum number of lines that text can occupy in the view.
func line Spacing(CGFloat) -> View
Sets the amount of space between lines of text in the view.
func minimum Scale Factor(CGFloat) -> View
Sets the minimum amount that text scales down to fit the available space.
func truncation Mode(Text .Truncation Mode) -> View
Sets the truncation mode for lines of text that are too long to fit in the available space.
func allows Tightening(Bool) -> View
Sets whether text can compress the space between characters when necessary to fit text in a line.
func text Content Type(UIText Content Type?) -> View
Sets the text content type for this view, which the system uses to offer suggestions while the user enters text on an iOS or tvOS device.
func text Content Type(WKText Content Type?) -> View
Sets the text content type for this view, which the system uses to offer suggestions while the user enters text on a watchOS device.
func flips For Right To Left Layout Direction(Bool) -> View
Sets whether the view flips its contents horizontally when the layout direction is right-to-left.
func disable Autocorrection(Bool?) -> View
Sets whether to disable autocorrection for this view.