writingToolsAffordanceVisibility
Specifies whether the system should show the Writing Tools affordance for text input views affected by the environment.
View ModifieriOS 18.4+macOS 15.4+tvOS 18.4+watchOS 11.4+visionOS 2.4+writingToolsAffordanceVisibility(_:) in SwiftUI
Declaration
compose().writingToolsAffordanceVisibility(
visibility: SwiftUI.Visibility
)nonisolated func writingToolsAffordanceVisibility(
_ visibility: Visibility
) -> some ViewParameters
visibility*SwiftUI.VisibilityWhether the affordance may be shown for text
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.
input views.
See also
More in Text and symbols.
- allowsTighteningSets whether text in this view can compress the space between characters when necessary to fit text in a line.
- autocorrectionDisabledSets whether to disable autocorrection for this view.
- baselineOffsetSets the vertical offset for the text relative to its baseline in this view.
- boldApplies a bold font weight to the text in this view.
- findDisabledPrevents find and replace operations in a text editor.
- findNavigatorProgrammatically presents the find and replace interface for text editor views.
- fontSets the default font for text in this view.
- fontDesignSets the font design of the text in this view.
- fontWeightSets the font weight of the text in this view.
- fontWidthSets the font width of the text in this view.
- interactionActivityTrackingTagSets a tag that you use for tracking interactivity.
- italicApplies italics to the text in this view.