Pushing new view using navigation link while using the searchbar crashes the app without any logs

ContentView:

List(jobs) { job in 
  NavigationLink(detination: DetailsView(job)) {
    ...
  }
}
.searchable(...)

DetailsView:

List {
   ...
}
.toolbar(ToolBarItem(...))

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!

Make you submit this to https://feedbackassistant.apple.com/

Terms of Service

Privacy Policy

Cookie Policy