Wednesday, July 31, 2024
HomeiOS Developmentios - Decide if a SwiftUI view is offered as sidebar?

ios – Decide if a SwiftUI view is offered as sidebar?


I am utilizing a NavigationSplitView to current a two-column view, with a sidebar and element content material on iPad, which is collapsed right into a single-column view on iPhone and when the app is utilized in Break up View and Slide Over.

I would prefer to model a few of the content material in my sidebar in a different way and reorganize a few of the content material relying on whether or not or not it is at the moment getting used as a sidebar alongside a element view, or if solely a single column is seen.

Studying the column visibility (NavigationSplitViewVisibility) does not work, because it solely appears to replace in response to the person toggling the sidebar manually. The .computerized mode is all the time set, no matter whether or not the sidebar is definitely seen in the mean time.



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments