I was able to create a unified toolbar in Mac Catalyst with this in the SceneDelegate.swift
:
// Use a UIHostingController as window root view controller.
if let windowScene = scene as? UIWindowScene {
let window = UIWindow(windowScene: windowScene)
window.rootViewController = UIHostingController(rootView: contentView)
// hide the titlebar
windowScene.titlebar?.toolbar = NSToolbar()
windowScene.titlebar?.titleVisibility = .hidden
...
}
But I want to make the toolbar transparent like in this example: https://lukakerr.github.io/swift/nswindow-styles#11-transparent-toolbar-without-seperator
Is this even possible in Mac Catalyst?