Tag: swiftui
All the articles with the tag "swiftui".
SwiftUI: Observable macro under the hood
Published: at 01:44 PMExplore how the @Observable macro works under the hood in SwiftUI: compile-time transformations, access tracking, fine-grained re-renders, and how Observation replaces ObservableObject and Combine.
SwiftUI: @State under the hood
Published: at 11:15 AMSwiftUI @State does not store values in your struct. It owns a node in the Attribute Graph. A deep dive into initialValue, DynamicProperty injection, and how invalidation actually works