Post

Replies

Boosts

Views

Activity

Reply to Fatal error: No ObservableObject of type ModelData found. A View.environmentObject(_:) for ModelData may be missing as an ancestor of this view.
Good day, I’m not sure exactly as I do not get a definition of some structs but try this: NavigationLink {       AppleOSDetail(appleos: appleos) .environmentObject(ModelData())   } label: {        AppleOSRow(appleos: appleos) .environmentObject(ModelData())   } If that doesn’t solve the error try putting .environmentObject(ModelData()) at other views that use it.
Sep ’22