In AppKit, you can use the NSTrackingSeparatorToolbarItem item to create a toolbar item that automatically attaches to the separator in a split view.
However, I didn't find an equivalent in SwiftUI yet. I tried to add a .toolbar modifier to each individual view, however, that didn't seems to achieve the effect. All the item are just on the right side of the window.
Any native SwiftUI way to achieve this, or do I have to go back to using AppKit windows?
However, I didn't find an equivalent in SwiftUI yet. I tried to add a .toolbar modifier to each individual view, however, that didn't seems to achieve the effect. All the item are just on the right side of the window.
Any native SwiftUI way to achieve this, or do I have to go back to using AppKit windows?