@State is used for simple local state within a view.
← Swift theorytheory 0/50 · 0%
SwiftUI · easy
18. SwiftUI: State
Basic state management.
Check your understanding
1. Modifier for local state?
2. Passed as a binding?
Basic state management.
@State is used for simple local state within a view.
1. Modifier for local state?
2. Passed as a binding?