The education of Paul Weichhart

Write like nobody is reading

Thinking in SwiftUI

As much as I love SwiftUI & the possibilities it provides for Apple Developers, thinking in SwiftUI — especially in the beginning — can be really challenging. If you aren’t used to writing code in a declarative manner, or do a lot of UIKit & SwiftUI development at the same time, it can be frustrating. Luckily Apple provided a very good Session at this years WWDC called Data Essentials in SwiftUI.

Where is “truth”?

Not only does it explain the basic concept of data flow in SwiftUI, it also teaches one important lesson you should ask yourself while writing code:

Where is “truth”?

If you haven’t had the chance to watch it yet, I can highly recommend it for every Developer getting started in SwiftUI as well as seasoned SwiftUI people.

Apple also introduced a new State and Data Flow Guide. The Documentation gives more insights & examples for the existing & also new Property Wrappers State, ObservedObject, ObservableObject & StateObject.

Memory lane WWDC 2014

Alongside the Data Essentials Session, I can also highly recommend a Talk by former Apple Engineer Andy Matuschak called Advanced iOS Application Architecture and Patterns from WWDC 14.