Instance Property

spellCheckingType

The spell-checking style for the text object.

Declaration

optional var spellCheckingType: UITextSpellCheckingType { get set }

Discussion

This property determines whether spell-checking is enabled or disabled during typing. With spell-checking enabled, the text object generates red underlines for all misspelled words. If the user taps on a misspelled word, the text object presents the user with a list of possible corrections.

The default value for this property is UITextSpellCheckingType.default, which enables spell-checking when autocorrection is also enabled. The value in this property overrides the spell-checking setting set by the user in Settings > General > Keyboard.

See Also

Managing Spelling and Autocorrection

var autocapitalizationType: UITextAutocapitalizationType

The auto-capitalization style for the text object.

enum UITextAutocapitalizationType

The auto-capitalization behavior of a text-based view. Used with the autocapitalizationType property.

var autocorrectionType: UITextAutocorrectionType

The autocorrection style for the text object.

enum UITextAutocorrectionType

The autocorrection behavior of a text-based view. Used with the autocorrectionType property.

enum UITextSpellCheckingType

The spell-checking behavior of a text-based view. Used with the spellCheckingType property.