SwiftUI Performance for Demanding Apps
SwiftUI is powerful and flexible, but sometimes confusing. Things like modifiers order, inline views, `body` complexity, and POD views, can all seriously affect our performance. In this talk, we will learn the best ways to use SwiftUI for resource heavy and dynamic UIs, while maintaining the golden 60 FPS.
We will start by comparing SwiftUI to UIKit: We know there’s no more View Controller, and views are merely “function of state”, but what does it mean?
Next, we will dive into specific scenarios and see how this new way of thinking is critical for achieving great performance. We will learn things like:
– Avoiding redundant view diffing
– Controlling view update lifecycle
– How to “hide” complex state to improve performance
– Utilizing POD Views
– And more…