Take a look at this WidgetKit problem, will not you? With glanceable experiences coming to the Lock Display in iOS 16, it’s the proper time to strive constructing your very personal Lock Display widget.
Start the problem
When you’re exploring glanceable applied sciences for the primary time, welcome! Earlier than we get began with the problem, take a look at “Problems and widgets: Reloaded” for an outline of the most recent updates to WidgetKit.
Problems and widgets: Reloaded
Our widgets code-along returns as we journey onto the watchOS and iOS Lock Display. Be taught in regards to the newest enhancements to WidgetKit that assist energy advanced issues on watchOS and may also help you create Lock Display widgets for iPhone. We’ll present you incorporate the most recent SwiftUI views…
When you’re prepared to start, it’s time to look at your app: What elements of it’d work as a widget? After you’ve recognized a side, discover configuration choices and the most effective timeline in your mannequin.
If you have already got a Dwelling Display widget, you too can discover reusing your SwiftUI code. Not each Dwelling Display widget is a superb candidate for a Lock Display widget, so think about completely different approaches to search out the appropriate one in your app.
For additional credit score: What occurs whenever you deploy your code to the Apple Watch? Have you ever discovered your self many of the strategy to an superior watchOS complication? Would you make any modifications to make your expertise really feel at residence on Watch?
How will you remodel your Lock Display? Present us what you’ve made on Twitter with the hashtag #WWDC22Challenges, or share your work within the WidgetKit Examine Corridor. And if you would like to talk extra about WidgetKit, be a part of the workforce at occasions all all through the week at WWDC22.
Discover #WWDC22Challenges on social media