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.