Contents

writingToolsBehavior(_:)

Specifies the Writing Tools behavior for text and text input in the environment.

Declaration

@MainActor @preconcurrency func writingToolsBehavior(_ behavior: WritingToolsBehavior) -> some View

Parameters

  • behavior:

    The Writing Tools behavior for text and text input in the environment.

Return Value

A view preferring the specified Writing Tools behavior.

Discussion

Use this view modifier to customize or disable the Writing Tools editing experience for Text (when selectable), TextField, and TextEditor views.

See Also

Configuring the Writing Tools behavior