Skip to content

Compiler error when using @Injected wrapper with @Observable macro #182

@murad1981

Description

@murad1981

When I try to use the @Injected property wrapper inside a class marked with @Observable macro which is part of the Swift Observation framework, I get the compile time error listed in the screenshot:

Image

however, when I remove the @Observable macro and use the regular ObservableObject protocol adoption there is no error reported.

I'm using Resolver version 1.5.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions