---
title: byMoving
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsfileversion/replacingoptions/bymoving
---

# byMoving

An option to perform replacing by moving a file.

## Declaration

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

## Discussion

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.
