---
title: forMerging
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsfilecoordinator/writingoptions/formerging
---

# forMerging

## Declaration

```swift
static var forMerging: NSFileCoordinator.WritingOptions { get }
```

## Discussion

Discussion When this constant is specified, the file coordinator calls the savePresentedItemChanges(completionHandler:) method of relevant file presenters to give them a chance to save their changes before your code makes its changes.

## See Also

### Constants

- [forDeleting](foundation/nsfilecoordinator/writingoptions/fordeleting.md)
- [forMoving](foundation/nsfilecoordinator/writingoptions/formoving.md)
- [forReplacing](foundation/nsfilecoordinator/writingoptions/forreplacing.md)
- [contentIndependentMetadataOnly](foundation/nsfilecoordinator/writingoptions/contentindependentmetadataonly.md)
