Michael Long
Dec 30, 2024

--

"State management in SwiftUI just got a game-changing upgrade with Swift 6, thanks to the revolutionary @Observable."

Hyperbole much? And I'm not sure that avoiding a protocol conformance is that revolutionary... especially since you didn't really do so as @Observable macro adds a similar conformance for you, behind the scenes.

You mentioned getting rid of Published, but neglected to mention the flip side of adding ObservationIgnored for items that you don't want triggering updates.

Honestly, feels like the standard regurgitation of every other article on the subject.

--

--

Michael Long
Michael Long

Written by Michael Long

I write about Apple, Swift, and SwiftUI in particular, and technology in general. I'm also a Lead iOS Engineer at InRhythm, a modern digital consulting firm.

No responses yet