Make widget great again
summary
Shows how to build real iOS widgets with WidgetKit: implements WidgetKit provider methods (placeholder, getSnapshot, getTimeline), assembles a model entry with date and status, and creates both a static widget and an IntentConfiguration widget that users can edit. Demonstrates app↔widget data sharing via App Group UserDefaults and forcing updates with WidgetCenter.reloadTimelines. Timeline logic creates a rolling set (example: 60-entry timeline updating per minute) and the widgets are built, run on device, and shipped with working examples and a GitHub project.
AI-written summary · about
chapters (21)
- 0:00Introduction
- 0:28Why widgets matter
- 4:45Workshop plan
- 5:48What is a widget
- 11:05Demo app setup
- 12:51Creating widget target
- 13:56Widget structure
- 16:49Building widget view
- 21:32Creating widget provider
- 23:59Sharing data with widget
- 27:08Loading character data
- 32:14Static widget configuration
- 34:21Testing static widget
- 37:13Adding widget bundle
- 38:18Intent configuration widget
- 41:52Testing intent widget
- 43:18Editing intent widget
- 48:21Final widget testing
- 50:08When to use widgets
- 53:46Project repository
- 54:07Q&A session
