Determine if a SwiftUI view is presented as sidebar?
I’m using a NavigationSplitView
to present a two-column view, with a sidebar and detail content on iPad, which is collapsed into a single-column view on iPhone and when the app is used in Split View and Slide Over.