What are the SwiftUI equivalent of
These were introduced in the WWDC 2025 session named "Build an AppKit app with the new design". Jeff introduced only the AppKit API's while there was no mention of SwiftUI API
What are the SwiftUI equivalent of
These were introduced in the WWDC 2025 session named "Build an AppKit app with the new design". Jeff introduced only the AppKit API's while there was no mention of SwiftUI API
NSSplitViewController / UISplitViewController don't appear to have an equivalent in SwiftUI.
I was asking for the newly introduced feature in AppKit where the detail view in navigation extends below the sidebar as explained in this WWDC 2025 video. I wanted to know, how that can be achieved using SwiftUI's NavigationSplitView. I am not looking for a replacement of NSSplitViewController / UISplitViewController
NSToolBar / UIToolbar on the other hand do have an equivalent Toolbar modifier which can be styled.
The toolbar style link that you have shared, is for the Toolbar(entire toolbar), I was asking about styling the Toolbar "item"
As mentioned in WWDC 20205 video "The prominent style tints the glass using the accent color, which is perfect for displaying state or emphasizing an important action."
// Tints the glass with the accent color.
toolbarItem.style = .prominent
I would like to know how this feature can be used in SwiftUI toolbar?
I would like to know how this feature can be used in SwiftUI toolbar?
You can add a Button
with .buttonStyle(.borderedProminent)
to the toolbar to get the same result.
Toggle
can be used to create a button that conveys an on/off state.