NavigationSplitView with selection loosing new selection when item is added
I am working on SwiftData project. I found the problem when adding new items to a NavigationSplitView that the first item was added without a problem. The selection was changed so that the Detail page was shown without any problem. But from then on it kept the old selection or was turned to nil, hence showing the view for a not selected item.