nalexn / clean-architecture-swiftui

SwiftUI sample app using Clean Architecture. Examples of working with CoreData persistence, networking, dependency injection, unit testing, and more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question about back navigation in simulator

omaralbeik opened this issue · comments

Thank you for the project @nalexn!

Could you please explain the following check for simulator 🤔

It is causing the details page not to pop back if it is presented by tapping a parent details page

Hey Omar, there is a bug in SwiftUI that basically crashes the app on the simulator when you try to pop the screen back.

I see, looks like changing the navigation link to:

NavigationLink(destination: self.detailsView(country: country)) {
    CountryCell(country: country)
}

is solving this particular issue, but then tapping on the last pushed country in the list after dismissing details is not showing details

Ok, the bug has been fixed in iOS 13.5 and so I could finally remove that workaround. Closing this issue.