Skip to content

No ObservableObject of type DestinationBuilderHolder found #60

@Gadave

Description

@Gadave

@johnpatrickmorgan Hi!
I’ve encountered a problem while using NavigationView in your library (version 0.11.1). Based on the app crash logs, the crash occurs during the app startup when accessing an environmentObject (DestinationBuilderHolder) in DestinationBuilderView.
Additionally, for NBNavigationStack, we are applying the .nbUseNavigationStack(.never) modifier.

Unfortunately, due to the complexity of reproducing this issue, I’m unable to provide a test project, but I’ve attached a screenshot of the crash log for your reference.

The issue has been observed on various subversions of iOS 15 and 16, most commonly on:
• iOS 16.7.10
• iOS 15.8.3
• iOS 16.1.1

My suspicion is that the problem may be related to how the environmentObject is propagated to DestinationBuilderView. In similar cases, issues in the library have been resolved by avoiding the use of environmentObject. This might be a valid solution here as well.

For reference, here are links to similar issues:
#42
#46

Thank you in advance for your time and assistance!

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions