heartRate
A sensor that provides the user’s heart rate data.
Declaration
static let heartRate: SRSensorDiscussion
The sample type for this sensor is CMHighFrequencyHeartRateData.
You need to provide a reason to record heart rates by adding the SRSensorUsageHeartRate dictionary to the NSSensorKitUsageDetail key in the information property list.