SwiftUI Weekly - Issue #116
The curated collection of links about SwiftUI. Delivered every Monday.
Reading
Displaying live activities in iOS 16
One of the most prominent features of iOS 16 is live activity widgets. iOS 16 allows us to display the live state of ongoing activities from our apps on the lock screen or in the Dynamic Island of the new iPhone 14 Pro. This week we will learn how to build live activity widgets for our apps using the new ActivityKit framework.
Mastering Dynamic Island in SwiftUI
In the previous post, we talked about live activity widgets displaying your app’s ongoing events. Live activity widgets can utilize the dynamic island of the iPhone 14 Pro. In this post, we will discuss possible configurations and customization points of the dynamic island feature using the new API available in the WidgetKit framework.
Dynamic dates with monospaced digits in SwiftUI
Display a self-updating date and time inside a SwiftUI Text view and prevent the UI from moving as the digits in the date change.
How to manage lifecycle events in SwiftUI iOS applications
Discover SwiftUI's lifecycle events onAppear(), onDisappear(), task() to trigger side effects in an iOS application for example to load or refresh some data when the view appears. In UIKit, we did that by overriding methods like viewDidAppear(_:) or viewDidDisappear(_:).
Create a circular slider in SwiftUI
How to create a circular slider in SwiftUI.
Using Identifiable in SwiftUI
In this blog post, I will explain Identifiable and ObjectIdentifierbased on the example of using SwiftUI's List.
Video
SwiftUI Tables in iOS 16
If you want to add tables to your SwiftUI projects, this is the video for you. Learn how to implement tables for iPad in iOS 16 and how to deal with those apps that also support iPhones. We will be covering all of the basics and reveal workarounds to issues I discovered. Learn also how to embed tables in a NavigationStack and a NavigationSplitView.