In Xcode 27 @State changes from a property wrapper to a macro, gaining lazy evaluation of the initial value. I summarized what this means for managing @Observable classes in our SwiftUI views: nilcoalescing.com/blog/Initial...
#WWDC26 #SwiftUI #iOSDev
SwiftUI's @State changes from a property wrapper to a macro in Xcode 27, gaining lazy evaluation of the initial value and fixing unnecessary @Observable model initialization on view recreation.