Michael Long
Aug 10, 2021

--

Glad you like the article.

Structs in SwiftUI are an interesting beast, but at their heart they're just lightweight definitions of views, created and evaluated and compared many, many, many times during the course of an app. As such I can see why structs are a better choice.

If you haven't read it, you might read Deep Inside Views, State and Performance in SwiftUI where I go into more detail as to why SwiftUI is what it is. https://medium.com/swlh/deep-inside-views-state-and-performance-in-swiftui-d23a3a44b79

--

--

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