I played with NavigationSplitView in #SwiftUI as I want to have a sidebar + detail view in my app and use the same code for iOS & iPadOS.
Faced soooo many issues like:
1. Removed Core Data object still visible in detail
2. Title in detail jumping on iOS (inline display mode)
3. Can’t change the sidebar background selection
Let me know if you have tips! Thanks
Here is a video of the second issue. It seems to work correctly on the first navigation but breaks after...
- Sidebar is a List where the title display mode is set to .inline.
- Detail is a Text where the title display mode is set to .inline.
Filed: #FB13193430 #SwiftUI #iOS17
@alpennec Yeah unfortunately NavigationSplitView is pretty unusable when it’s compact: https://mastodon.notsobig.co/@phill/110939609793823190
Your best bet is to create a wrapper around it and switch to a NavigationStack when needed.
@phill thanks Phillip! This breaks the "NavigationSplitView works on all platforms" promise...
Michael suggested something similar. I'll follow your instructions until Apple finally fixes these bugs.
https://mastodon.social/@michaelsteeber/111101504701440840