Along with numerous new developer features and updates brought to us in WWDC21, including Swift updates like the async/await syntax, structured concurrency, and actors, Apple provided new features, enhancements, and worthwhile deprecations to SwiftUI, which continue to bolster the declarative UI framework as a viable and advantageous option for UI development.
Updates like the task modifier nicely link SwiftUI to the concurrency updates to Swift, while many other updates serve more so as “quality of life” improvements for the typical SwiftUI developer. Often times these improvements offer more convenient, native SwiftUI support for views that were previously only achievable with UIKit and UIViewRepresentable. Without further ado, let’s jump into some of these updates.