Posts

Post not yet marked as solved
3 Replies
0 Views
I think you miss the point of SwiftUI. The main benefit of SwiftUI is that your UI is the output of a function where the input is the state you want to display. I cannot think of a better way to solve this problem. The bad part of SwiftUI is, that it is not mature enough to replace UIKit - but it will be in some years.
Post not yet marked as solved
2 Replies
0 Views
As far as I understand property wrappers, the type of myProperty *is* String, and the type of *_myProperty* is Published<String>.Publisher. And since myProperty is changed, it should call didSet.