finds.dev← search

// the find

pawello2222/WidgetExamples

★ 1,111 · Swift · MIT · updated May 2024

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

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.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →