---
title: url
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nspersistentstore/url
---

# url

The URL for the persistent store.

## Declaration

```swift
var url: URL? { get set }
```

## Discussion

Discussion To alter the location of a store, send the persistent store coordinator a setURL(_:for:) message.

## See Also

### Managing Store Attributes

- [identifier](coredata/nspersistentstore/identifier.md)
- [isReadOnly](coredata/nspersistentstore/isreadonly.md)
