When?

You’ll store changes to the scrum in a Data property. You’ll define the property using the @State wrapper because you need to mutate the property from within the view.

What?

SwiftUI observes @State properties and automatically redraws the view’s body when the property changes.

Each piece of data that you use in your view hierarchy should have a single source of truth. You can use the @State property wrapper to define the source of truth for value types.

Declare @State properties as private so they can be accessed only within the view in which you define them.