Is this a bug in @Published?

It is rather unfortunate, and given that it isn't well-documented, it is bound to be a "gotcha" for a while to come. It would be nice to be able to choose the semantics à la:

@Published(on: .didSet) var ...

with the options .didSet and .willSet (defaulting to .willSet.)

4 Likes