---
title: NSFileCoordinator.WritingOptions
framework: foundation
role: symbol
role_heading: Structure
path: foundation/nsfilecoordinator/writingoptions
---

# NSFileCoordinator.WritingOptions

Options to use when changing the contents or attributes of a file or directory.

## Declaration

```swift
struct WritingOptions
```

## Overview

Overview You must specify only one constant at a time for a given write operation.

## Topics

### Constants

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

### Initializers

- [init(rawValue:)](foundation/nsfilecoordinator/writingoptions/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Constants

- [NSFileCoordinator.ReadingOptions](foundation/nsfilecoordinator/readingoptions.md)
