Xcode 14.0 (14A309), iOS Deployment Target 15.0
- Main NavigationView #1 > NavigationView #2 > NavigationView #3
- SwiftUI View FileDownloaderView with a .fileImporter() attached to a VStack
- The FileDownloaderView is a subView of the NavigationView #3
When I select a file with the fileImporter or when I cancel the fileImporter, the view comes back to navigationView #1 instead of navigationView #3, with the following log message:
The view service did terminate with error:
Error Domain=_UIViewServiceErrorDomain Code=1 "(null)"
UserInfo={Terminated=disconnect method}
It worked fine before, but I probably made some changes elsewhere in the code that lead to this disconnection or something being nil in one of the navigationViews. I'm not able to find the error, neither a way to identify the exact location/moment where it fails.
Any help to improve debugging or to understand what could trigger this type of error?
Thank you. Philippe.