<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SensorKit",
  "identifier" : "/documentation/SensorKit/SRSensor/heartRate",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SensorKit"
    ],
    "preciseIdentifier" : "c:@SRSensorHeartRate"
  },
  "title" : "heartRate"
}
-->

# heartRate

A sensor that provides the user’s heart rate data.

```
static let heartRate: SRSensor
```

## Discussion

The [`sample`](/documentation/SensorKit/SRFetchResult/sample) type for this sensor is <doc://com.apple.documentation/documentation/CoreMotion/CMHighFrequencyHeartRateData>.

You need to provide a reason to record heart rates by adding the <doc://com.apple.documentation/documentation/BundleResources/Information-Property-List/NSSensorKitUsageDetail/SRSensorUsageHeartRate> dictionary to the <doc://com.apple.documentation/documentation/BundleResources/Information-Property-List/NSSensorKitUsageDetail> key in the information property list.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)