I have a class Foo that has multiple dependencies to ObservableObject. For testing purposes I want to create a mocked version of those objects but I cannot see a way to do so and then inject those into Foo.
- I can't create another protocol that my
ObservableObjectimplements because theObservableObjectprotocol has self or associated type requirements and can't be used as a type declared and - I cannot subclass the
ObservableObjectsince it has@Publishedproperty wrapped members that cannot be overwritten.