SwiftUI features in WidgetKit

Apple's WidgetKit framework allows us to display relevant content from an app on the iOS Home screen or in Notification Center on macOS. SwiftUI is used to build widgets, and it has gained new features designed specifically for the task. In this post, Federico Zanetello explores some of these new features and includes examples of how they might be used in more general contexts.