#published #observableobject
Published (Property Wrapper) Automatically broadcasts observable changes via Observable Protocol
Structs with ObservedObject (Property Wrapper) grabs that broadcasted data.
So Published should be used with ObservableObject Protocol.
...
#requiredinit #decoder #finalclass
Hacking with Swift / What is the @Published property wrapper?arrow-up-right
Last updated 3 years ago