Can I build a three panel app with navigation, an inspector, and a toolbar on macOS with SwiftUI?

Asked on 07/31/2024

1 search

Yes, you can build a three-panel app with navigation, an inspector, and a toolbar on macOS using SwiftUI. SwiftUI provides a range of capabilities for creating complex and customizable user interfaces, including navigation views, split views, and inspectors.

For example, the session SwiftUI essentials mentions that SwiftUI supports views like navigation, split view, and customizable multicolumn tables, as well as presentations such as sheets and inspectors. This means you can create a multi-panel interface with these components.

Additionally, the session Tailor macOS windows with SwiftUI discusses how to use new SwiftUI APIs to tailor macOS applications, including customizing window elements and organizing content with scenes like Window and WindowGroup.

For more detailed guidance, you might want to check out the chapters in the following sessions:

  • SwiftUI essentials
    • Fundamentals of views
    • Built-in capability
    • Across all platforms
  • Tailor macOS windows with SwiftUI
    • Anatomy of a window
    • App window structure
    • Style window toolbars
    • Refine window behaviors
    • Adjust window placement

These sessions will provide you with the necessary information to build and customize your three-panel app using SwiftUI on macOS.

Can I build a three panel app with navigation, an inspector, and a toolbar on macOS with SwiftUI? | Ask WWDC