<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ObjectCaptureSession/Configuration-swift.struct/checkpointDirectory",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:19_RealityKit_SwiftUI20ObjectCaptureSessionC13ConfigurationV19checkpointDirectory10Foundation3URLVSgvp"
  },
  "title" : "checkpointDirectory"
}
-->

# checkpointDirectory

An optional directory to store data about session progress which may
be used to speed up on-device reconstruction by passing into the `PhotogrammetrySession.Configuration`.
If you provide a value for `checkpointDirectory`, it also needs to point to an empty,
writable directory.
If the directory is not writable or already contains data,
the session moves to the `.failed(Error)` state.

```
var checkpointDirectory: URL?
```

---

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)