I am having trouble getting an updated preview when using @EnvironmentObject
in my Swift project. In the simulator it works fine, but previewing is not. The error it shows is following:
ASET - Audio System Engineer Tools crashed due to missing environment of type: UserSettings. To resolve this add `.environmentObject(UserSettings(...))` to the appropriate preview.
However, when I try to add it, it keeps on coming with the same issue. Anyone have some helpful advise or solution?