New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on iOS 14 devices #6
Comments
Thanks for raising this issue @GioPalusa! I tried to replicate the issue by running your code on the iOS 14.4 (iPhone 12 Pro) simulator, but wasn't able to reproduce any strange behaviour or crashes. Do you only see the issue on device or can it be reproduced on simulator? I wasn't able to include everything in your sample code (e.g. |
I have tried to replicate the issue in a separate project, but haven't been able to make it crash yet. Adding things one by one and testing what it might be that crashes the app. I'll let you know! |
After about two days of debugging I finally made it work again. |
Glad to hear it's resolved! |
I have an issue where the navigation works flawlessly on iOS 15 devices, but immediately crashes the app upon pressing a link on an iOS 14 device. I had a look at
DestinationBuilderModifier
and the content there is printed out differently.on iOS 15 devices (Including simulator)
SwiftUI._ViewModifier_Content<NavigationBackport.DestinationBuilderModifier<MyProject.Event>>()
on iOS 14 devices (Including simulator)
(SwiftUI._ViewModifier_Content<NavigationBackport.DestinationBuilderModifier<MyProjectt.Event>>) content = {}
This is one of the places implemented that crashes the app. The navigation is done by
NBNavigationDestination
attached to a scroll viewTested cases:
The error printed out is
2022-07-06 14:34:52.810190+0200 MyProject[99017:5417116] Fatal error: No view builder found for key MyProject.Account: file NavigationBackport/DestinationBuilderHolder.swift, line 34
Here is also another example where it works on iOS 15 and not on iOS 14
The text was updated successfully, but these errors were encountered: