---
title: "init(ofItemAtURL:forPersistentIdentifier:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/nsfileversion/init(ofitematurl:forpersistentidentifier:)"
---

# init(ofItemAtURL:forPersistentIdentifier:)

## Declaration

```swift
init?(ofItemAtURL url: URL, forPersistentIdentifier persistentIdentifier: Any)
```
