When I click on the NavigationLink to go to DetailsView, the detail view glitches out quite badly and the entire app becomes unresponsive, before crashing. I isolated the problem and realised it is caused by either having the ToolBarItem in DetailsView or having the List view present in DetailsView.
Really odd bug, doesn't happen when search bar is not in use and does not happen in the Xcode Simulator either.
Would really appreciate if anyone can verify or have a workaround!
It’s extremely valuable for any Apple employee to view and help triage, so they should always be posted. They’re also useful to help post a duplicate and point back to the original so Apple gets some idea of priority.
Potential Fix
Use ToolbarItemGroup. However it only works properly when you use more than one button. Of course you can use a blank button for the second item.