accessibilityRespondsToUserInteraction(_:isEnabled:)
Explicitly set whether this Accessibility element responds to user interaction and would thus be interacted with by technologies such as Switch Control, Voice Control or Full Keyboard Access.
Declaration
nonisolated func accessibilityRespondsToUserInteraction(_ respondsToUserInteraction: Bool, isEnabled: Bool) -> ModifiedContent<Self, AccessibilityAttachmentModifier>Parameters
- respondsToUserInteraction:
Whether the view responds to user interaction.
- isEnabled:
If true the accessibility interaction state is applied; otherwise the accessibility interaction state is unchanged.
Discussion
If this is not set, the value is inferred from the traits of the Accessibility element, the presence of Accessibility actions on the element, or the presence of gestures on the element or containing views.