finds.dev

pawello2222/WidgetExamples

A demo project showing different types of Widgets created with SwiftUI and WidgetKit.

View on GitHub

★ 1,111SwiftMITupdated May 2024

// the take

A reference project covering nearly every WidgetKit feature in one Xcode project: App Groups, CoreData, SwiftData, Live Activities, interactive widgets, lock screen widgets, deep links, and audio playback. Aimed at iOS developers who want a working example to copy from rather than piecing together Apple's scattered documentation.

Each widget type is isolated in its own folder with a README, so you can grab just the CoreData or DeepLink example without reading the whole project. Covers the full iOS 14–17 API surface including newer additions like Interactive widgets and SwiftData that most example projects miss. The shared App Group setup is done correctly — widget and main app share a container and the data flow is actually wired up, not just stubbed. CI is configured and the project reportedly builds clean.

Last push was May 2024, so iOS 18 additions (widget relevance hints, Small accessory sizes for new controls) are absent. The AnalogClock widget uses private API and ships as a prebuilt binary xcframework, which is a non-starter for App Store submissions and a trust issue for any team that audits dependencies. No tests at all — the CI just builds, it doesn't verify any behavior. The 'unofficial' section normalizes private API use without enough warning about what that actually costs you in a production app.

We read the README, the directory tree and a key source file in June 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
1,111
Forks
91
Language
Swift
License
MIT
Last commit
15 May 2024

// nearby

If WidgetExamples isn't quite it.

All repos →