Accessibility modal - Jetpack Compose

In Jetpack Compose, to set a title for an accessibility pane, you can use paneTitle inside semantics block modifier.

It's recommended to set the pane title for high-level layouts, such as Scaffold.

Please keep in mind that focus is not trapped when a pane title has been set.

Scaffold(modifier = Modifier.semantics {
    paneTitle = "Appt pane"
}) { paddingValues ->
    // Scaffold content...
}