One Logo Pool Ball
SwiftUI · IOS API REFERENCE

TextInputAutocapitalization

struct · iOS 15.0+ · SDK 27.1

struct TextInputAutocapitalization

The kind of autocapitalization behavior applied during text input. Pass an instance of `TextInputAutocapitalization` to the ``View/textInputAutocapitalization(_:)`` view modifier.

Members (5)

get · iOS 15.0+

characters

TypeScript
static get characters(): TextInputAutocapitalization
Swift declaration
static var characters: TextInputAutocapitalization { get }

Defines an autocapitalizing behavior that will capitalize every letter.

get · iOS 15.0+

never

TypeScript
static get never(): TextInputAutocapitalization
Swift declaration
static var never: TextInputAutocapitalization { get }

Defines an autocapitalizing behavior that will not capitalize anything.

get · iOS 15.0+

words

TypeScript
static get words(): TextInputAutocapitalization
Swift declaration
static var words: TextInputAutocapitalization { get }

Defines an autocapitalizing behavior that will capitalize the first letter of every word.

get · iOS 15.0+

sentences

TypeScript
static get sentences(): TextInputAutocapitalization
Swift declaration
static var sentences: TextInputAutocapitalization { get }

Defines an autocapitalizing behavior that will capitalize the first letter in every sentence.

init · iOS 15.0+

init

TypeScript
static init(type: _UIKit_UITextAutocapitalizationType): (TextInputAutocapitalization) | null
Swift declaration
init?(_ type: UITextAutocapitalizationType)

Creates a new ``TextInputAutocapitalization`` struct from a `UITextAutocapitalizationType` enum.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUI types →