Contents

writingToolsAffordanceVisibility(_:)

Specifies whether the system should show the Writing Tools affordance for text input views affected by the environment.

Declaration

nonisolated func writingToolsAffordanceVisibility(_ visibility: Visibility) -> some View

Parameters

  • visibility:

    Whether the affordance may be shown for text input views.

Return Value

A view with the specified Writing Tools affordance visibility.

Discussion

Use this view modifier to disable the Writing Tools affordance for TextField views when running on macOS or Mac Catalyst.

See Also

Configuring the Writing Tools behavior