---
title: "init(document:oldURL:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uidocument/didmovetowritablelocationmessage/init(document:oldurl:)"
---

# init(document:oldURL:)

## Declaration

```swift
init(document: UIDocument, oldURL: URL)
```
