---
title: stopRecording()
framework: SensorKit
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+]
path: sensorkit/srreader/stoprecording()
---

# stopRecording()

Stops recording sensor data.

## Declaration

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

## Discussion

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. note: An error if the stop operation fails Example do {     try await reader.stopRecording() } catch {     print("Failed to stop recording: \(error)") }
