Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Published Properties build failure #7

Open
LoadingIndicator opened this issue Sep 14, 2019 · 2 comments
Open

@Published Properties build failure #7

LoadingIndicator opened this issue Sep 14, 2019 · 2 comments

Comments

@LoadingIndicator
Copy link

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.

@AvdLee
Copy link
Owner

AvdLee commented Mar 10, 2020

This should be fixed now!

@LoadingIndicator
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants