---
title: "init(_:makeFileWrapper:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/filewrapperdocumentwriter/init(_:makefilewrapper:)"
---

# init(_:makeFileWrapper:)

Creates a writer that uses FileWrapper to write documents to disk.

## Declaration

```swift
init(_ configuration: sending FileWrapperDocumentWriter<Snapshot>.WriteConfiguration, makeFileWrapper: @escaping (Snapshot) async throws -> FileWrapper)
```

## Parameters

- `configuration`: Properties required to write a document to disk.
- `makeFileWrapper`: Serializes a Snapshot into a FileWrapper.

## See Also

### Creating a writer

- [FileWrapperDocumentWriter.WriteConfiguration](swiftui/filewrapperdocumentwriter/writeconfiguration.md)
