<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ObjectCaptureSession/finish()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:19_RealityKit_SwiftUI20ObjectCaptureSessionC6finishyyF"
  },
  "title" : "finish()"
}
-->

# finish()

Requests that the capture session be stopped and all data saved.

```
@MainActor func finish()
```

## Discussion

Call this method when the user has completed the scan successfully.  The session switches to state
`.finishing` while it saves all data and ultimately switches the state to `.completed`.
The session ignores this method call if the current state is any value other than `.capturing`.

---

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)