π 100 Days of SwiftUI (Day 10)
Completed Day 10 in 100 Days of SwiftUI.
This sections covers structs. Itβs not quite the same as a C struct but definitely has rich value types similar to a tuple. It seems like a reasonable default when trying to decide between structs and classes.
While I have seen a getter and setter with Objective-C before, I really enjoyed learning about willSet and didSet observers to attach code when interacting with properties.