Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

accessibilityRepresentation(_:)

A view modifier that maps SwiftUI's accessibilityRepresentation.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.accessibilityRepresentation(representation: @Composable () -> Unit): Modifier

Overview

Modifier.accessibilityRepresentation()

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

nonisolated func accessibilityRepresentation<V>(@ContentBuilder representation: () -> V) -> some View where V : View

Topics

Overloads

fun Modifier.accessibilityRepresentation(representation: @Composable () -> Unit): Modifier
SwiftUI View.accessibilityRepresentation(representation:)