Skip to content

@Published Properties build failure #7

@LoadingIndicator

Description

@LoadingIndicator

Hey Antoine, thanks for the playground. I cannot build the @published Properties part of the playground since you're using the @published property wrapper within a struct.

As the documentation states:

The @published attribute is class-constrained. Use it with properties of classes, not with non-class types like structures.

I also think for the two print statements to make sense at the bottom of said playground, you should set the button's isEnabled value to false initially. Otherwise, like it is the case now, "Button enabled is true" is being printed twice.

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