Closed nsillik closed 9 months ago
Additionally, I've tried following the EnvironmentInsertions
code paths, which I assumed were related to this, but I seem to have lost the thread. My coordinator doesn't have anything in self.environmentInsertions
.
Any updates on this?
Any updates on this?
I'm having trouble figuring out how to have my environment objects pass along to views presented modally with the
.present
ViewTransition
. I am getting the following error:Fatal error: No ObservableObject of type MyObject found. A View.environmentObject(_:) for MyObject may be missing as an ancestor of this view.
The following reproduces the issue:
Am I missing some required setup? Or is this not possible, if I must I could make the environment objects that I create singletons, although at least one of them that will be less-than-straightforward.