SwiftUI App WindowGroup options for Catalyst?

Can a Catalyst app built with SwiftUI App have a hidden titlebar, or other window titlebar options?

Ie. an iOS app running on macOS built using the App protocol without this error:

ERROR: 'HiddenTitleBarWindowStyle' is unavailable in iOS

Code Block
@main
struct MyApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
.windowToolbarStyle(HiddenTitleBarWindowStyle())
}


I tried lots of work arounds including trying to use @UIApplicationDelegateAdaptor to get the windowScene (fails)

Code Block
windowScene.titlebar?.titleVisibility = .hidden

Anyone have suggestions or workarounds?
SwiftUI App WindowGroup options for Catalyst?
 
 
Q