# SwiftUI’s @State Is Now a Macro - What It Means for You Page: https://stenobird.com/podcast/programming-tech-brief-by-hackernoon-6364125/swiftui-s-state-is-now-a-macro-what-it-means-for-you Text version: https://stenobird.com/podcast/programming-tech-brief-by-hackernoon-6364125/swiftui-s-state-is-now-a-macro-what-it-means-for-you.md Podcast: [Programming Tech Brief By HackerNoon](https://stenobird.com/podcast/programming-tech-brief-by-hackernoon-6364125) Published: 2026-06-29T16:00:53+00:00 Episode link: https://share.transistor.fm/s/8cfc6592 Audio file: https://media.transistor.fm/8cfc6592/6582aa90.mp3 Processing state: not_requested JSON: https://stenobird.com/v1/public/podcasts/programming-tech-brief-by-hackernoon-6364125/episodes/swiftui-s-state-is-now-a-macro-what-it-means-for-you Duration seconds: 219 ## Resource This story was originally published on HackerNoon at: https://hackernoon.com/swiftuis-state-is-now-a-macro-what-it-means-for-you . SwiftUI’s @State is now exposed as a macro. Learn what changed, how lazy initialization works, and how to use @State with @Observable models. Check more stories related to programming at: https://hackernoon.com/c/programming . You can also check exclusive content about #swift , #swiftui , #ios-app-development , #ios-development , #swift-programming , #apple , #swift-changes , #hackernoon-top-story , and more. This story was written by: @element . Learn more about this writer by checking @element's about page, and for more stories, please visit hackernoon.com . TL;DR: SwiftUI’s `@State` is now exposed as a macro, but everyday usage stays almost the same. The biggest practical change is lazy initialization: class instances stored in `@State`, such as `@Observable` view models, are created once for the lifetime of the view’s state storage instead of being re-created whenever the view struct is rebuilt. ## Actions - request_transcript: `POST https://stenobird.com/v1/public/podcasts/programming-tech-brief-by-hackernoon-6364125/episodes/swiftui-s-state-is-now-a-macro-what-it-means-for-you/transcription-requests` — Idempotently request low-priority transcript generation for this episode. - read_markdown: `GET https://stenobird.com/podcast/programming-tech-brief-by-hackernoon-6364125/swiftui-s-state-is-now-a-macro-what-it-means-for-you.md` — Read the agent-friendly Markdown representation of this episode resource. A page view does not enqueue transcription. Agents should invoke `request_transcript` explicitly when they need this episode processed. ## Transcript Full transcripts are not published on public pages unless there is a clear rights basis.