It's like "always on top" option to all apps.
Post
Replies
Boosts
Views
Activity
Although Apple introduced .toolbar(removing: .sidebarToggle) finally, users can still drag the divider to change the column width and hide the side bar on macOS, and since sidebar toggle button is removed, users could never get back.
In Sonoma Xcode15, developers have to use something like this:
.introspect(.navigationSplitView, on: .macOS(.v13,.v14,.v15)) { splitview in
if let delegate = splitview.delegate as? NSSplitViewController {
delegate.splitViewItems.first?.canCollapse = false
}
}
But it fails to work on Sequoia with Xcode16. Developers have to search around again to make it work just like the built-in Settings App, it's a shame.