Sample of Todo app with Widget. Uses SwiftData as a local storage.
This sample covers such topics: 1 How to use SwiftData in background tasks 2 How to share the storage and data state between different targets 3 How to deal with Widgets 4 Interactive Widgets with iOS 17 5 Correct and immediate changes