---
title: playgroundSharedDataDirectory
framework: playgroundsupport
role: symbol
role_heading: Global Variable
path: playgroundsupport/playgroundshareddatadirectory
---

# playgroundSharedDataDirectory

The path to the directory containing data shared between all playgrounds in Xcode.

## Declaration

```swift
let playgroundSharedDataDirectory: URL
```

## Discussion

Discussion Use this directory to store data that must be persisted between playground runs or shared between multiple playgrounds.

## See Also

### Data Persistence

- [PlaygroundKeyValueStore](playgroundsupport/playgroundkeyvaluestore.md)
- [PlaygroundValue](playgroundsupport/playgroundvalue.md)
