Questions tagged [navigationsplitview]

21 questions
8
votes
0 answers

NavigationTitle delay on iOS 16.1 when using NavigationSplitView

Is anyone else facing this issue with iOS 16.1 NavigationSplitView where the NavigationTitle loads after the view is loaded? – works fine on iOS 16.0. (https://i.stack.imgur.com/G0IUG.gif) It's literally the same code, but it's giving me issues…
5
votes
0 answers

SwiftUI: NavigationSplitView title bar issues

I’ve filed this as a bug with Apple (FB12119822) since I’m fairly certain there’s nothing wrong with my code, but posting here for posterity and in case other folks have found a workaround. When navigating between list and detail sections in a…
Dan Eden
  • 1,494
  • 1
  • 11
  • 12
2
votes
0 answers

NavigationSplitView resetting when app enters background

I've been trying to build an app using NavigationSplitView and SwiftUI on iOS 16. I noticed that as soon almost as the app enters the background (sometimes I have to wait a few seconds before immediately reopening the app) the contents of the…
2
votes
0 answers

SwiftUI: NavigationSplitView with mixed conditional rows and sections crashes

I’ve filed this bug with Apple (FB12119791) since I’m pretty sure it’s not a mistake in my code, but posting here both for posterity and to see if anyone has found a solution. It’s also hard to describe, so the attached code sample is probably a…
Dan Eden
  • 1,494
  • 1
  • 11
  • 12
2
votes
0 answers

How can I show an overlay/popover on a Mac app that covers the entire window (including the navigation bar) with SwiftUI?

I am using SwiftUI to build a native macOS app and when using NavigationSplitView or NavigationStack the navigation/toolbar is always forced to the top. I've tried ZStack, .overlay and even manipulating the NSWindow but it is always still forced to…
Paul
  • 189
  • 1
  • 9
2
votes
0 answers

SwiftUI NavigationSplitView column visibility on iPhone?

I'm trying to create a 3-column layout in SwiftUI. The first column is a LazyVGrid of selectable items. The selection then impacts a list of items in a content view (second column) which also isn't a SwiftUI list but a VStack + other views in a…
2
votes
1 answer

Is there any way to make NavigationSplitView's side bar with clear background?

I am trying to make side bar in NavigationSplitView with clear background for side bar, so that detail view is visible under sidebar when it is open.In UIKit it is possible to make, when iPhone in portrait mode. How can I make it in SwiftUI? In view…
2
votes
1 answer

Declare bottom zone in a SwiftUI navigation sidebar below a list

In the below screenshots (taken from the Apple Developer app), we can see that the Account button sticks to the bottom of the sidebar. When the window is tall enough (left), the list doesn’t scroll, Account button’s background color has no…
Baoshan Sheng
  • 2,635
  • 1
  • 11
  • 11
1
vote
0 answers

swiftui - NavigationSplitView Crashes in Landscape Mode on iPad (iOS 16.2)

i am working on an app for iphone and ipad and wanted to use NavigationSplitView. When running on an iPad in landscape orientation i am running into a crash on iOS 16.2 that i can't really understand. In this example you can reproduce the crash on…
1
vote
0 answers

.navigationDestination(isPresented:) doesn't work with 3 column NavigationSplitView

After a couple of days struggling with programmatic navigation in SwiftUI and 3 column NavigationSplitView I found that .navigationDestination(isPresented:destination:) works only between sidebar and master or between master and detail, but can't be…
1
vote
1 answer

Binding’s inside NavigationSplitView detail (TextField, TextEditor)

I'm using a two-column NavigationSplitView. Trying to figure out how to update the data model via .onSubmit modifier and use a TextField view without Binding.constant. Within the detail section, I have TextField and TextEditor. How to avoid…
Nick Rossik
  • 1,048
  • 1
  • 6
  • 16
1
vote
1 answer

How can I permanently show sidebar in a SwiftUI NavigationView or SplitNavigationView exactly like the Apple Settings App on iPad?

I am trying to display a two column NavigationView in my app exactly like the settings on the iPad. With no way to collapse the sidebar on an iPad. I would have thought using a NavigationView with DoubleColumnStyle would work but it doesn't and…
alionthego
  • 8,508
  • 9
  • 52
  • 125
1
vote
1 answer

NavigationSplitView column visibilty does not work on iPhone

I have a two column NavigationSplitView with a linked NavigationSplitViewVisibility variable. On the iPad everything works as expected. Tapping on the “Go to Detail View” in the sidebar will go to the Detail view. However on the iPhone nothing…
reza23
  • 3,079
  • 2
  • 27
  • 42
1
vote
2 answers

In Swift how do I programmatically select a navigation link in a list

In a Swift navigation split view once all of the data has been loaded from core data (indicated by the isLoading variable being equal to false) the Progress View stops being displayed but the detail view is now empty. What I would like have happen…
Chris
  • 105
  • 8
0
votes
0 answers

NavigationSplitView does not collapse when I select an item (changing the detail view)

When I select an item in my NavigationSplitView, the menu does not dismiss. I am using a encapsulated view that is used in the iPhone layout / before iOS 16 and I'm wondering if there is a command to dismiss the menu. I would still like to keep the…
Halpo
  • 2,982
  • 3
  • 25
  • 54
1
2