Handles the full ActivityKit stack for building Live Activities and Dynamic Island experiences in iOS apps. You get concrete patterns for defining ActivityAttributes with static and dynamic state, managing the activity lifecycle from start to end, laying out Lock Screen widgets, and configuring all three Dynamic Island presentations (compact, minimal, expanded). Also covers push-to-update integration with APNs token handling and payload formats. The code targets iOS 26+ with Swift 6.3 but stays backward compatible to iOS 16.1. Most useful when you're building real-time status updates like delivery tracking or workout timers and need to avoid the common mistakes around stale dates, dismissal policies, and state serialization size.

skills.sh installs
3.5K
GitHub stars
1.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add dpearson2699/swift-ios-skills --skill activitykit --agent claude-code

Installs into .claude/skills of the current project.

Files

ActivityKit

ActivityKit owns real-time, glanceable Live Activities displayed on the Lock Screen and Dynamic Island. Ordinary timeline widgets belong in widgetkit, and generic APNs setup belongs in push-notifications; ActivityKit owns the Live Activity lifecycle and payload contract. aps.content-state must decode into the exact ActivityAttributes.ContentState shape, including any coordinated custom date/range encoding. Modern ActivityContent lifecycle examples require iOS 16.2+ unless noted.

See references/activitykit-patterns.md for complete code patterns including push payload formats, concurrent activities, state observation, and testing.

Contents

Workflow

1. Create a new Live Activity

Sponsors

Details

Repository
github.com/dpearson2699/swift-ios-skills
Categories
Git & Pull Requests, Code Review & Quality, Mobile Development, CLI & Terminal
First seen
May 16, 2026

More from dpearson2699/swift-ios-skills

All 98
1wshobson avatarbefore-you-buildwshobson/agentsPre-build product and feature risk review for founders, product managers, and AI-assisted builders. Use this skill when the user is about to build a landing pag3.5Kskills.sh installs
2majidmanzarpour avatarthreejs-qa-releasemajidmanzarpour/threejs-game-skillsVerify and release Three.js browser games. Combines playtest QA, automated bot playtests, mobile/responsive checks, production builds, preview verification, sta3.5Kskills.sh installs
3dpearson2699 avatarcloudkitdpearson2699/swift-ios-skillsImplement, review, or improve CloudKit and iCloud sync in iOS/macOS apps. Use when working with CKContainer, CKRecord, CKQuery, CKSubscription, CKSyncEngine, CK3.5Kskills.sh installs
4kkkkhazix avatarneat-freakkkkkhazix/khazix-skillsKnowledge and governance closeout: reconcile project docs, rule files (CLAUDE.md/AGENTS.md), authorized agent memory, and workspace residue with what the code a3.5Kskills.sh installs
5actionbook avatarunsafe-checkeractionbook/rust-skillsCRITICAL: Use for unsafe Rust code review and FFI. Triggers on: unsafe, raw pointer, FFI, extern, transmute, *mut, *const, union, #[repr(C)], libc, std::ffi, Ma3.5Kskills.sh installs
6himself65 avatarearnings-recaphimself65/finance-skillsGenerate a post-earnings analysis for any stock using Yahoo Finance data. Use when the user wants to review what happened after earnings, understand beat/miss r3.4Kskills.sh installs