Contents

autocapitalizationType

The autocapitalization style for the text object.

Declaration

optional var autocapitalizationType: UITextAutocapitalizationType { get set }

Discussion

This property determines at what times the Shift key is automatically pressed, thereby making the typed character a capital letter. The default value for this property is UITextAutocapitalizationType.sentences.

Some keyboard types do not support autocapitalization. Specifically, this option is ignored if the value in the keyboardType property is set to UIKeyboardType.numberPad, UIKeyboardType.phonePad, or UIKeyboardType.namePhonePad.

See Also

Managing spelling and autocorrection