One Logo Pool Ball
SwiftUI · IOS API REFERENCE

AutomaticTextEditorStyle

struct · iOS 17.0+ · SDK 27.1

@MainActor @preconcurrency struct AutomaticTextEditorStyle

The default text editor style, based on the text editor's context. You can also use ``TextEditorStyle/automatic`` to construct this style.

Members (2)

method · iOS 17.0+

makeBody

TypeScript
makeBody(configuration: TextEditorStyleConfiguration): Promise<AutomaticTextEditorStyle_Body>
Swift declaration
@MainActor @preconcurrency func makeBody(configuration: AutomaticTextEditorStyle.Configuration) -> AutomaticTextEditorStyle.Body

Creates a view that represents the body of a text editor. The system calls this method for each ``TextEditor`` instance in a view hierarchy where this style is the current text editor style. - Parameter configuration: The properties of the text editor.

init · iOS 17.0+

init

TypeScript
static init(): Promise<AutomaticTextEditorStyle>
Swift declaration
@MainActor @preconcurrency init()

Creates an instance of the default text editor style.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUI types →