I can't use the existential 'any' keyword with @InjectedObject property wrapper, the fired error is:
Type 'any Test' cannot conform to 'ObservableObject'
the example is as follows:
protocol Test: ObservableObject {
}
class MyViewModel: Test {
}
struct MyView: View {
@InjectedObject var viewModel: any Test //<---- the error fires here
var body: some View {
Text("Hello")
}
}