This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I created this stack question: (https://stackoverflow.com/questions/67400875/ipados-swiftui-sidebar-3-column-missing-sidebar-button-with-3-views-in-navi)
Can anyone give any assistance? I'm new to SwiftUI so I'm not sure if this is a legitimate bug - that I need to file a radar about, or if it's user error, or something that's unsupported right now.
EDIT: Here's the content of the stack post:
Here's the code for 3 columns:
struct MainNavigationView: View
{
@State var screen: Screen? = .home
var body: some View
{
NavigationView
{
List(0..<10)
{ i in
Text("Row \(i)")
}
.listStyle(SidebarListStyle())
Text("Second")
Text("Third")
}
.navigationViewStyle(DoubleColumnNavigationViewStyle())
}
}
However, when I launch this on iPad (14.5), then I see two columns ("Second" and "Third") with a back button on the 2nd column, when I touch that I get the "List" Column showing but NO Sidebar control.
However, if I comment out
Text("Third")
in the
NavigationView
then I see Columns 1 and 2 and I DO see the sidebar control.
How can I get all 3 columns showing WITH the sidebar control?
Subreddit
Post Details
- Posted
- 3 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/iOSProgramm...