Skip to content

Update State semantics to match new Xcode 27 SwiftUI #459

Description

@dfabulich

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions