Setting up a widget extension

  • building a Home Screen widget in SwiftUI
  • making an autoupdating live countdown timer inside a widget
  • asynchronously loading widget data
  • reusing code from the main UIKit app in the widget extension
  • sharing user defaults between the app and the extension
  • pushing updates to the widget from UIKit with WidgetKit APIs
You need to purchase the book to read this chapter.Learn more about the bookAlready have a copy? Request access.