---
title: "archiverWillFinish(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nskeyedarchiverdelegate/archiverwillfinish(_:)"
---

# archiverWillFinish(_:)

Notifies the delegate that encoding is about to finish.

## Declaration

```swift
optional func archiverWillFinish(_ archiver: NSKeyedArchiver)
```

## Parameters

- `archiver`: The archiver that sent the message.

## See Also

### Encoding Data and Objects

- [archiver(_:didEncode:)](foundation/nskeyedarchiverdelegate/archiver(_:didencode:).md)
- [archiverDidFinish(_:)](foundation/nskeyedarchiverdelegate/archiverdidfinish(_:).md)
- [archiver(_:willEncode:)](foundation/nskeyedarchiverdelegate/archiver(_:willencode:).md)
- [archiver(_:willReplace:with:)](foundation/nskeyedarchiverdelegate/archiver(_:willreplace:with:).md)
