<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SensorKit",
  "identifier" : "/documentation/SensorKit/SRReader/stopRecording()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SensorKit"
    ],
    "preciseIdentifier" : "s:9SensorKit8SRReaderC13stopRecordingyyYaKF"
  },
  "title" : "stopRecording()"
}
-->

# stopRecording()

Stops recording sensor data.

```
final func stopRecording() async throws
```

## Discussion

The reader must be authorized for the sensor for this to succeed.
This stops recording on this device and any paired devices.
Sensor recording will continue until the last interested reader has
stopped recording.

> Throws: An error if the stop operation fails

## Example

```swift
do {
    try await reader.stopRecording()
} catch {
    print("Failed to stop recording: \(error)")
}
```

---

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)