Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

touchBar(_:)

A view modifier that maps SwiftUI's touchBar.

iOS: unavailable (no-op)macOS 14.0+tvOS: unavailable (no-op)watchOS: unavailable (no-op)
fun Modifier.touchBar(content: @Composable () -> Unit): Modifier

Overview

Modifier.touchBar()

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

nonisolated func touchBar<Content>(@ContentBuilder content: () -> Content) -> some View where Content : View

Topics

Overloads

fun Modifier.touchBar(content: @Composable () -> Unit): Modifier
SwiftUI View.touchBar(content:)