I have an iPhone tab view application that has not been designed for iPad, and I am aiming to add a left-hand bar that summarises some content and keeps visible what is normally a sheet. What pattern would work best for this?
At present, I pass the view to another view with a navigation stack containing an arrangement view with the previous view and then the sidebar as a secondary view within it—would that be the appropriate approach?
Hi @craigmpeters2,
A NavigationSplitView or UISplitViewController manages the presentation of multiple adjacent panes of content, automatically handling layout collapse into a single stack on compact displays like standard iPhones while expanding appropriately on larger or unfolding screens.
Embedding your lists and primary navigation views directly into a split view provides the correct semantic structure for sidebar patterns, superseding custom arrangement views for hierarchical navigation. To learn more, see Building lists and navigation.
An ArrangementView in SwiftUI and UIArrangementViewController in UIKit are layout containers for a primary view and a secondary view designed to adapt to different device poses and reserved regions, such as folding areas.
Avoid placing an arrangement view inside a navigation split view, list, or scroll view where part of your view might become inaccessible. Place navigation containers around arrangement views rather than within them.
Rather than maintaining a custom ArrangementView hierarchy that mimics split behaviors, refactor your application to use standard system containers like NavigationSplitView to get proper responsive behavior and platform-consistent visuals automatically.
For more guidance, see Preparing your app for iPhone Duo.
Cheers,
Paris X Pinkney | WWDR | DTS Engineer