SwiftUI is different from many other UI toolkits you might have worked with before: you cannot manipulate the UI views directly. Any changes you see on screen are determined by the state of the application’s data model and its transitions. You might have heard “in SwiftUI, the view is a function of the application’s state.”
What does this mean, and why is this such a big deal?
Imperative UI toolkits suffer from one very big flaw: they allow developers to update model and view independently. This often results ...