https://developer.apple.com/documentation/updates/swiftui
June 2026
General
Build your project in Xcode 27 or later so that the @State attribute uses the State() macro to create a state value in an App, Scene, or View. This change only initializes and stores your property once when it’s a class.
@State is now a macro instead of a @propertyWrapper.
https://developer.apple.com/documentation/updates/swiftui
@Stateis now amacroinstead of a@propertyWrapper.macro: https://developer.apple.com/documentation/SwiftUI/State()@propertyWrapper: https://developer.apple.com/documentation/swiftui/state