© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
S. R. Lage, P. ShresthaGetting Started with WidgetKithttps://doi.org/10.1007/978-1-4842-7042-4_3

3. Writing Your First Widget

Sagun Raj Lage1   and Prakshapan Shrestha2
(1)
Golmadhi, Bhaktapur, Nepal
(2)
Tokha, Kathmandu, Nepal
 

Now comes the chapter in which you will finally get to make your hands dirty by working on a project. In this chapter, you will create a widget extension of an existing project and break that widget extension down to see what it is made up of – timeline, timeline provider, widget view, placeholder, snapshot, and widget configuration.

We have prepared a starter project so that you can get straight into creating its widget. Find the zip file ...

Get Getting Started with WidgetKit: Create Widgets for iOS and iPadOS 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.