macCatalyst/ SwiftUI Touch Bar
问题 how could I add Touch Bar Support in Catalyst- Apps written in SwiftUI? For Example, if I want to display a Button in a View: import SwiftUI struct ContentView: View { var body: some View { VStack{ #if targetEnvironment(macCatalyst) Text("macOS") .frame(maxWidth: .infinity, maxHeight: .infinity) .focusable() .touchBar { Button(action: { print("tapped") }) { Text("TestButton") } } #endif Text("iOS") } } } If I use it in a an macOS App it works but if I use it in Catalyst and add