
Activitykit
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-codeInstalls 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
- ActivityAttributes Definition
- Activity Lifecycle
- Lock Screen Presentation
- Dynamic Island
- Push-to-Update
- Recent Additions
- Common Mistakes
- Review Checklist
- References
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- Cloudkit3.5K
- Photokit3.4K
- Mapkit3.4K
- Swiftui Webkit3.4K
- Realitykit3.4K
- Avkit3.4K
- Spritekit3.3K
- Cryptokit3.3K
- Metrickit3.3K
- Pdfkit3.3K
- Gamekit3.3K
- Eventkit3.3K
- Musickit3.3K
- Swift Architecture3.3K
- Pencilkit3.3K
- Carplay3.2K
- Ios Simulator3.2K
- Scenekit3.2K
- Homekit3.2K
- Accessorysetupkit3.2K
- Callkit3.2K
- Cryptotokenkit3.2K
- Financekit3.2K
- Adattributionkit3.2K