SwiftUI app using NavigationSplitView crashes when sidebar list’s selection is cleared
I have a simple SwiftUI app with a sidebar and detail pane implement using NavigationSplitView
. It works OK, except when (programmatically) deselecting the item selected in the list, the app crashes with an unhelpful stack trace (mostly ___lldb_unamed_symbol
). Specifically, when selectedItem = nil
, the app crashes.