<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSFileVersion/ReplacingOptions/byMoving",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@E@NSFileVersionReplacingOptions@NSFileVersionReplacingByMoving"
  },
  "title" : "byMoving"
}
-->

# byMoving

An option to perform replacing by moving a file.

```
static var byMoving: NSFileVersion.ReplacingOptions { get }
```

## Discussion

This option results in moving the old version of the file out of the version store instead of copying the new contents into the file’s version.
Use this option in conjunction with a file coordinator to make sure the operation is coordinated with other clients of the file.

---

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)