What is @State actually doing in SwiftUI - swiftyplace
The SwiftUI property wrapper @State doesn't store values in your view struct. It creates a node in SwiftUI's AttributeGraph, and if you don't understand that, you'll write bugs you can't explain. Here's what's actually happening and how to fix the most common mistake.