-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
@State var task: Task |
Thanks for sharing your project! I'm trying to understand how people solve this task list problem. I am unhappy with my own solutions so far.
I'm going to understand you sharing this project publicly as an invitation to discuss the implementation. Please let me know if you would prefer not.
In this example you have used @State to let the task toggle change the completed state, but as I recall this means your main data model won't get updated.
To illustrate this, try adding a "complete all tasks" button. I predict it won't work.
Metadata
Metadata
Assignees
Labels
No labels