What problem does it solve?
Apple Health data integration is complex due to the need for proper authorization, consistent read/write access, and robust querying and update patterns. This skill consolidates HealthKit usage into a cohesive guide that helps developers implement authorization, sample and statistics queries, background delivery, and workout session management in Swift.
Core Features & Use Cases
- Authorization workflow: request access to common data types like stepCount, heartRate, and more.
- Data access patterns: support for sample queries, statistics queries, and time-series data for charts.
- Background delivery and workouts: enable background updates and manage live workouts with HKWorkoutSession and HKLiveWorkoutBuilder.
Quick Start
Provide a Swift HealthKit integration plan covering authorization, data queries, background delivery, and workout session setup for a Swift app.