SwiftUI Weekly - Issue #208
The curated collection of links about SwiftUI. Delivered every Monday.
Reading
Mastering TaskGroups in Swift
Swift Structured Concurrency makes our lives much easier by introducing task groups. Task groups are a way to run a dynamic number of child tasks, await all of them, or cancel. This week, we will learn how to use and optimize task groups in Swift.
The easiest way to use SwiftUI in a UIKit app
If you work on a UIKit app, there’s a very high probability that this app contains a UITableView
or a UICollectionView
. But did you know that since iOS 16, there’s an API that lets you very easily configure the cells of a table view or a collection view using SwiftUI?
Build a macOS menu bar utility in SwiftUI
SwiftUI’s MenuBarExtra scene provides a simple way to integrate menu bar functionality into macOS apps. It can complement a traditional app by offering quick access to frequently used features or serve as the foundation for a standalone menu bar utility.
Presenting and Managing Expandable Sections in SwiftUI
Expanding or collapsing views to show or hide content is often necessary for a better user experience. The Section container in SwiftUI is a well-suited view for this purpose, which, as of iOS 17, provides initializers that enable expanding and collapsing, making it easier to present and hide content on demand.
How to use SceneDelegate in SwiftUI
Learn how to integrate SceneDelegate with a SwiftUI-based application.