Enhancing iOS Applications with WidgetKit
As iPhones have evolved over the years, new capabilities have been added to take advantage of the big screen, the memory capacity, and the powerful processor.
One of those capabilities is the home screen widgets – a great way to extend our apps and provide information and even interaction in new places.
In this chapter, we will cover the following topics:
- The idea of widgets
- Understanding how widgets work
- Add our first widget and build a timeline of entries
- Add a user-configurable widget
- Ensure our widgets are up to date
- Customize the widget animations
- Add user interactions such as buttons and toggles
- Add a control widget to the control center and lock screen
So, let’s start with the basics – what is the idea of widgets?