Text Trait Properties

Text fields implement the UITextInputTraits protocol. This protocol provides eight properties that you set to define the way the field handles text input:

Image autocapitalizationTypeDefines the text autocapitalization style. Available styles use sentence capitalization, word capitalization, all caps, and no capitalization. Avoid capitalizing when entering user names and passwords. Use word capitalization for proper names and street address entry fields.

Image autocorrectionTypeSpecifies whether the text is subject to iOS’s autocorrect ...

Get The Core iOS Developer’s Cookbook, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.