Post

Replies

Boosts

Views

Activity

Reply to My SwiftUI code is becoming un-SwiftUI-y. I'm looking to make things right again.
Try using a didSet on each of the AppStorage fields. This can either: immediately call updateAvailableWords whenever there's a change set a flag indicating that availableWords is out of date; make availableWords a computed property that updates itself only if that flag is true Also, I would make availableWords private(set) - external clients should not be manipulating it directly.
May ’24