activitykit

Solid

Implement, review, or improve Live Activities and Dynamic Island experiences in iOS apps using ActivityKit. Use when building real-time updating widgets for the Lock Screen and Dynamic Island — delivery tracking, sports scores, ride-sharing status, workout timers, media playback, or any time-sensitive information that updates in real time. Also use when working with ActivityKit, ActivityAttributes, Activity lifecycle (request/update/end), Dynamic Island layouts (compact/minimal/expanded), push-to-update Live Activities, or Lock Screen live widgets.

Code & Development 624 stars 34 forks Updated 2 days ago NOASSERTION

Install

View on GitHub

Quality Score: 81/100

Stars 20%
93
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# ActivityKit Build real-time, glanceable experiences on the Lock Screen, Dynamic Island, StandBy, CarPlay, and a paired Mac using ActivityKit. Patterns target iOS 26+ with Swift 6.3, backward-compatible to iOS 16.1 unless noted. See [references/activitykit-patterns.md](references/activitykit-patterns.md) for complete code patterns including push payload formats, concurrent activities, state observation, and testing. ## Contents - [Workflow](#workflow) - [ActivityAttributes Definition](#activityattributes-definition) - [Activity Lifecycle](#activity-lifecycle) - [Lock Screen Presentation](#lock-screen-presentation) - [Dynamic Island](#dynamic-island) - [Push-to-Update](#push-to-update) - [iOS 26 Additions](#ios-26-additions) - [Common Mistakes](#common-mistakes) - [Review Checklist](#review-checklist) - [References](#references) ## Workflow ### 1. Create a new Live Activity 1. Add `NSSupportsLiveActivities = YES` to the host app's Info.plist. 2. Define an `ActivityAttributes` struct with a nested `ContentState`. 3. Create an `ActivityConfiguration` in the widget bundle with Lock Screen content and Dynamic Island closures. 4. Start the activity with `Activity.request(attributes:content:pushType:)`. 5. Update with `activity.update(_:)` and end with `activity.end(_:dismissalPolicy:)`. 6. Forward push tokens to your server for remote updates. ### 2. Review existing Live Activity code Run through the Review Checklist at the end of this document. ## ActivityAttributes ...

Details

Author
dpearson2699
Repository
dpearson2699/swift-ios-skills
Created
2 months ago
Last Updated
2 days ago
Language
N/A
License
NOASSERTION

Similar Skills

Semantically similar based on skill content — not just same category

Web & Frontend Solid

apple-engineer-superpowers

Use when writing Swift code for Apple platforms - iOS, macOS, visionOS. Covers Swift 6 concurrency, actors, Sendable, async/await, SwiftUI, MVVM architecture, Metal GPU programming, RealityKit ECS, visionOS scenes, interpolation/animation, advanced collection types, property wrappers, Combine bridging, error handling, testing, and API design patterns.

23 Updated 2 months ago
piemonte
AI & Automation Solid

accessorysetupkit

Discover and configure Bluetooth and Wi-Fi accessories using AccessorySetupKit. Use when presenting a privacy-preserving accessory picker, defining discovery descriptors for BLE or Wi-Fi devices, handling accessory session events, migrating from CoreBluetooth permission-based scanning, or setting up accessories without requiring broad Bluetooth permissions.

624 Updated 2 days ago
dpearson2699
AI & Automation Solid

swift-

专为 iOS/macOS 现代开发打造的代码分析规范。全面剖析 SwiftUI 响应式模式、ARC 强引用循环破除、以及 Swift 5.5+ 下基于 Actor 与 async/await 的全新并发架构。

40 Updated today
microwind
Data & Documents Solid

recap-integration

Integrates the Recap Swift package into SwiftUI apps, authors Recap-compatible releases markdown, and configures RecapDisplayPolicy and RecapScreen customization. Use when adding Recap into an app, updating Releases.md, or customizing the behavior of a Recap screen.

265 Updated 2 months ago
mergesort
AI & Automation Featured

chatgpt-app-builder

DEPRECATED: This skill has been replaced by `mcp-app-builder`. Check if `mcp-app-builder` is available in the skills folder. If not, install it: `npx skills install mcp-use/mcp-use --skill mcp-app-builder` Use `mcp-app-builder` instead of this skill. Build ChatGPT apps with interactive widgets using mcp-use and OpenAI Apps SDK. Use when creating ChatGPT apps, building MCP servers with widgets, defining React widgets, working with Apps SDK, or when user mentions ChatGPT widgets, mcp-use widgets, or Apps SDK development.

9,994 Updated today
mcp-use