Post

Replies

Boosts

Views

Activity

Reply to Looking to tweak default behaviour for a SwiftUI NavigationView in a TabView on iPad (in Portrait orientation)
I have not found a way to force the NavigationView to display the List view when iPad is in portrait. If the NavigationLink's are embedded within the List, you can simply add a view after the List within the NavigationView, which will be shown when there is no selection: NavigationView { List(items) { item in NavigationLink(destination: DetailView(item) ) { Text(item.description) } } ViewToShowWhenNoLinkIsActive() }
Aug ’21