Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

accessibilityRespondsToUserInteraction(_:)

A view modifier that maps SwiftUI's accessibilityRespondsToUserInteraction.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.accessibilityRespondsToUserInteraction(respondsToUserInteraction: Boolean = true): Modifier

Overview

Modifier.accessibilityRespondsToUserInteraction()

This is the Kotlin form of SwiftUI View.accessibilityRespondsToUserInteraction(_:): SwiftUI documentation. In Swift it reads:

nonisolated func accessibilityRespondsToUserInteraction(_ respondsToUserInteraction: Bool = true) -> ModifiedContent<Self, AccessibilityAttachmentModifier>

Topics

Overloads

fun Modifier.accessibilityRespondsToUserInteraction(respondsToUserInteraction: Boolean = true): Modifier
SwiftUI View.accessibilityRespondsToUserInteraction(_:)
fun Modifier.accessibilityRespondsToUserInteraction(respondsToUserInteraction: Boolean, isEnabled: Boolean): Modifier
SwiftUI View.accessibilityRespondsToUserInteraction(_:isEnabled:) · iOS 18.0+, macOS 15.0+, tvOS 18.0+, watchOS 11.0+