---
title: PlaygroundValue
framework: playgroundsupport
role: symbol
role_heading: Enumeration
path: playgroundsupport/playgroundvalue
---

# PlaygroundValue

The types you can save in the key-value store or send in messages to live views.

## Declaration

```swift
enum PlaygroundValue
```

## Overview

Overview The example below stores a dictionary in a PlaygroundValue instance and then stores the value in a PlaygroundKeyValueStore. let myData = [     "animal": PlaygroundValue.string("Llama"),     "count": PlaygroundValue.integer(5) ]

PlaygroundKeyValueStore.current.keyValueStore["AnimalCountDict"] = .dictionary(myData) For information about using PlaygroundValue instances to send messages, see Send and Receive Messages.

## Topics

### Representing Data

- [PlaygroundValue.boolean(_:)](playgroundsupport/playgroundvalue/boolean.md)
- [PlaygroundValue.data(_:)](playgroundsupport/playgroundvalue/data.md)
- [PlaygroundValue.date(_:)](playgroundsupport/playgroundvalue/date.md)
- [PlaygroundValue.floatingPoint(_:)](playgroundsupport/playgroundvalue/floatingpoint.md)
- [PlaygroundValue.integer(_:)](playgroundsupport/playgroundvalue/integer.md)
- [PlaygroundValue.string(_:)](playgroundsupport/playgroundvalue/string.md)

### Representing Data Collections

- [PlaygroundValue.array(_:)](playgroundsupport/playgroundvalue/array.md)
- [PlaygroundValue.dictionary(_:)](playgroundsupport/playgroundvalue/dictionary.md)

## See Also

### Data Persistence

- [PlaygroundKeyValueStore](playgroundsupport/playgroundkeyvaluestore.md)
- [playgroundSharedDataDirectory](playgroundsupport/playgroundshareddatadirectory.md)
