25
Getting Started with Lock Screen Widgets
Apple introduced WidgetKit during WWDC 2020, which allows you to show relevant and glanceable content from your app on the iOS Home screen. During WWDC 2022, Apple updated WidgetKit to support complications for Apple Watch and widgets on the Lock screen for iPhone.
In this chapter, you’ll implement a Lock screen widget for your LetsEat
project that shows you the restaurants from a specific location.
You’ll start by adding a widget extension to your app. You’ll configure your widget to display restaurants from a specific location, and you’ll customize how your widget looks. Finally, you’ll add your widget to your Lock screen.
By the end of this chapter, you’ll have learned how to create and configure ...
Get iOS 16 Programming for Beginners - Seventh Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.