---
title: "url(for:)"
framework: coredata
role: symbol
role_heading: Instance Method
path: "coredata/nspersistentstorecoordinator/url(for:)"
---

# url(for:)

Returns the location of the provided persistent store.

## Declaration

```swift
func url(for store: NSPersistentStore) -> URL
```

## Parameters

- `store`: A persistent store.

## Return Value

Return Value The URL for store.

## See Also

### Related Documentation

- [persistentStores](coredata/nspersistentstorecoordinator/persistentstores.md)

### Managing a store’s location

- [setURL(_:for:)](coredata/nspersistentstorecoordinator/seturl(_:for:).md)
- [persistentStore(for:)](coredata/nspersistentstorecoordinator/persistentstore(for:).md)
