Type Property

sleepAnalysis

A category sample type for sleep analysis information.

Declaration

static let sleepAnalysis: HKCategoryTypeIdentifier

Discussion

These samples use values from the HKCategoryValueSleepAnalysis enum. For best results when analyzing sleep samples, it's recommended that you use

HKMetadataKeyTimeZone

to

store time zone metadata with your sleep sample data.