UITextInputTraits
A set of methods that defines features for keyboard input to a text object.
Declaration
@MainActor protocol UITextInputTraits : NSObjectProtocolMentioned in
Overview
For a custom text object to support keyboard input, it must adopt this protocol to interact properly with the text-input management system. The UITextField and UITextView classes automatically support this protocol.
Topics
Configuring the keyboard appearance
keyboardTypeUIKeyboardTypekeyboardAppearanceUIKeyboardAppearancereturnKeyTypeUIReturnKeyTypetextContentTypeUITextContentType
Managing the keyboard behavior
Managing spelling and autocorrection
autocapitalizationTypeUITextAutocapitalizationTypeautocorrectionTypeUITextAutocorrectionTypespellCheckingTypeUITextSpellCheckingTypeinlinePredictionTypeUITextInlinePredictionType
Configuring the autoformatting behaviors
smartQuotesTypeUITextSmartQuotesTypesmartDashesTypeUITextSmartDashesTypesmartInsertDeleteTypeUITextSmartInsertDeleteType