Skip to content

Glossary: SwiftUI

@State

Also written: State

A property wrapper for a view's own changing value, such as a quantity or typed text. SwiftUI stores the value between redraws and redraws the view when it changes.

Where the book teaches it

Related terms

stateproperty wrapper@Binding