Questions tagged [navigationsplitview]

21 questions
0
votes
1 answer

Does anybody have a working NavigationSplitView with NavigationStack in Details View?

No matter how it is set up, a complex 3 Columns NavigationSplitView with NavigationStack crashes or has inconsistent workflow. Sidebar selection determines which content (or feature) is in Content. Content (or feature) who is live (or selected)…
0
votes
1 answer

NavigationLink does not append to path inside NavigationSplitView/NavigationStack

The following code shows that $path is always 0, despite tapping a NavigationLink inside the stack. That means that when I select a panel, and tap on the navigation link to go to 'firstPanel subview', then select a new panel, it does not reset the…
0
votes
1 answer

How to unmute colors in SwiftUI's NavigationSplitView sidebar

I am using NavigationSplitView, introduced in iOS16, with a basic list and attempting to color a system image with standard colors. I am noticing that when the navigationSplitViewStyle is .automatic or .prominentDetail and the color scheme is dark,…
0
votes
1 answer

Preselecting a (dynamic) item in NavigationSplitView

I'm using NavigationSplitView to structure the user interface of my (macOS) app like this: struct NavigationView: View { @State private var selectedApplication: Application? var body: some View { NavigationSplitView { …
Niels Mouthaan
  • 1,010
  • 8
  • 19
0
votes
1 answer

How to keep the selected item on DetailView when picker selection changed

I have a NavigationSplitView with a Picker that shows 2 list on a MainView. When you select an item, the DetailView is update. The problem is that when you change the picker selection the DetailView not always show a value. I want to keep the…
Ariel Antonio Fundora
  • 1,330
  • 15
  • 20
0
votes
1 answer

NavigationSplitView doesn't work using enum with associated type

I have the following model in place for navigating to various pages: enum Destination: Hashable { case today case activity case settings(path: SettingsPath? = nil) case project(project: ProjectItem? = nil) enum SettingsPath: Hashable { …
Joey Slomowitz
  • 179
  • 1
  • 12
1
2