I recently got the chance to work with WidgetKit, and wanted to share my experience of the resources I used for the same.
First and foremost, the documentation is solid this year. "No overview available" is rarely there. So, going through the documentation before starting with WWDC sessions really gave me a gist of what Widgets are, and how they work.
The second resource I really liked was great WWDC sessions. The order in which I followed them -
- Meet WidgetKit
- Build SwiftUI views for widgets
- Widgets Code-along, part 1: The adventure begins
- Widgets Code-along, part 2: Alternate timelines
- Widgets Code-along, part 3: Advancing timelines
- Design great widgets
- Add configuration and intelligence to your widgets
At this point of time, I had some good basic knowledge of WigetKit to start creating my own.
On Medium, I referred to these four articles when I was stuck -
- Build Your First iOS Widget — Part 1
- Build Your First iOS Widget — Part 2
- Build Your First iOS Widget — Part 3
- Introducing iOS 14 WidgetKit With SwiftUI
I didn't refer much videos on YouTube, but watched this entire series by Alfian -
- iOS 14 WidgetKit | Building COVID-19 API Stats Widget | Static Configuration | SwiftUI
- iOS 14 WidgetKit Pt 2 | Building COVID-19 API Stats | SiriKit Intent Configurable Parameter
- iOS 14 WidgetKit Pt 3 | Building COVID-19 API Stats | Widget Bundle & Deeplink URL
You can refer to the repository here - https://github.com/alfianlosari/Covid19StatsWidgetKit
Update - I just referred to this amazing YouTube video by Stewart Lynch for working with App Groups - Simple iOS 14 Widgets - WidgetKit
With these resources, I was able to create some beautiful static and configurable widgets! I hope you create some great widgets, too!