SwiftUI NavigationView and NavigationLinks not working with iPad multitasking

Originator:mb
Number:rdar://FB9725651 Date Originated:Oct 27, 2021 at 11:54 AM
Status:Open Resolved:
Product:Framework Product Version:13.1
Classification:Incorrect/Unexpected Behavior Reproducible:Always
 
When using the multitasking behavior on an iPad where you split screen two apps, SwiftUI’s NavigationView with NavigationLink in it will no longer push when switching to it. If you restart the app, it will work. 

1. Setup a SwiftUI view that has a NavigationView with a List in it with NavigationLinks.
2. Run the application on an iPad (physical or simulator) like the 6th gen iPad mini
3. Test that the split style of the NavigationView works by selecting the links in the list and seeing that the detail showing changes
4. Tap the multitasking icon up top to go into split view with another app like Safari.
5. Try taping the navigation links and notice the app no longer pushes.
6. Restart the app in split screen and notice that you can tap the links again
7. Adjust the sizing of the test app to be 2/3 of the screen and other app like Safari to 1/3
8. Go back to split screen and notice that the links break again.

I would expect that I could use NavigationView’s with Lists with NavigationLinks to push to new controller regardless if I’m multitasking or not. This should mirror the behavior of UISplitViewController.

I’ve attached a video of the behavior and a sample project.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!