In this blog, we give you the step by step tutorial on how you can build a mobile widget with Apple’s WidgetKit and Adobe Experience Platform Mobile SDKs.
With the launch of iOS 14, Apple has introduced various new technologies. One such technology is WidgetKit, which gives developers the API to create their own home screen widgets on iOS. Widgets present relevant information at a glance and can be pinned in different sizes on any home screen page. Widgets are a great opportunity to provide another means of engagement for users. Users can interact with widgets by simply tapping them to be taken into the corresponding application via a deep link. They can also be made user-configurable to allow users to personalize them. With this, Widgets add a layer of customization that will allow users to spice up their home screens, while also providing users with relevant information and a quick access point into the corresponding application.
To implement a widget, you add a widget extension to your app, configure the widget with a timeline provider, and use SwiftUI views to display the widget’s content. The timeline provider tells WidgetKit when the widget’s content should be updated.