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

#indiedev #iosdev #buildinpublic

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

cc @curtclifton @lucabernardi @ricketson

@phill I know you played a lot with NavigationSplitView, is that a bug you filed? Thanks!

Follow

@alpennec Yeah unfortunately NavigationSplitView is pretty unusable when it’s compact: mastodon.notsobig.co/@phill/11

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.

mastodon.social/@michaelsteebe

Sign in to participate in the conversation
The Not So Big Company

The home of The Not So Big Company on Mastodon.