什麼是 healthkit?
使用 HealthKit 讀取、寫入和查詢 Apple Health 資料。涵蓋 HKHealthStore 授權、樣本查詢、統計查詢、圖表統計收集查詢、保存 HKQuantitySample 數據、後台交付、使用 HKWorkoutSession 和 HKLiveWorkoutBuilder、HKUnit 和 HKQuantityTypeIdentifier 值進行鍛鍊。在與 Apple Health 整合、顯示健康指標、記錄運動或啟用後台健康數據傳輸時使用。 來源:dpearson2699/swift-ios-skills。