I am using the exact same code from the Apple WWDC19 Session 235:
This code is in the scene(_:, willConnectTo:, options:) method:
#if targetEnvironment(UIKitForMac)
if let windowScene = scene as? UIWindowScene {
if let titleBar = windowScene.titlebar {
let toolbar = NSToolbar()
// Setup toolbar
}
}
#endif
However, on the 3rd line there, it just tells me that the windowScene property does not have the titlebar property within it.
Am I missing something?