Introducing widgets
A widget appears as a small pane of information on your Home screen. It’s meant to provide relevant and glanceable content. For example, if you’re at a particular location, a widget could display restaurants at that location. Tapping the widget launches your app. In iOS 16, you could also display widgets on your Lock screen as well as your Home screen.
Watch the video at the following link to see the Meet WidgetKit WWDC 2020 session: https://developer.apple.com/videos/play/wwdc2020/10028.
Watch the video at the following link to see the Complications and widgets: Reloaded WWDC 2022 session: https://developer.apple.com/videos/play/wwdc2022/10050/.
More information about widgets is available at https://developer.apple.com/documentation/widgetkit.
Apple provides templates that make adding a widget to your app very easy. Let’s start by adding a widget target to your LetsEat
project in the next...