SwiftUI on MacOS (Not iOS)

Hi

I'm working on an app that contains a sidebar for navigation, and a main area for content related editors.

I wan't to create a top bar with tabs for open documents much like Xcode does.

The document tabs also has an X-button to close the editor when hovering over the tab.

How can I make the open documents tab with SwiftUI?

/ Michael

The closest thing SwiftUI has out of the box is a document tab bar. If you create a document-based app, you get a tab bar with a tab for every open document and an X button to close the document. The tab bar is initially hidden. Choose View > Show Tab Bar to show the tab bar.

SwiftUI on MacOS (Not iOS)
 
 
Q