Contents

UITextInputTraits

A set of methods that defines features for keyboard input to a text object.

Declaration

@MainActor protocol UITextInputTraits : NSObjectProtocol

Mentioned 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

Managing the keyboard behavior

Managing spelling and autocorrection

Configuring the autoformatting behaviors

Configuring the writing tools experience

Configuring Smart Replies

Configuring Password AutoFill

Configuring math expression completion

Instance Properties

See Also

Text input