SwiftUI - is it possible to get didSet to fire when changing a @Published struct?
问题 I have just updated to XCode 11.4 and some of my code has stopped working. I have some @Published struct variables in an ObservableObject . Previously, when I updated properties on the struct, the didSet method would fire on the published property, but that's not the case anymore. Is it possible that this behaviour has changed by design in the latest update to Swift? Here's a trivial example: import SwiftUI struct PaddingRect { var left: CGFloat = 20 var right: CGFloat = 20 } final class