A data storage container you use to persist information across different sessions.
- Xcode 10.2+
- Swift Playgrounds 2.0+
- Playground Support
The key-value store is available only in Swift Playgrounds and is persistent only in playground books.
The example below sets the value of the key “animal” in the playground key-value store to “Llama” and then retrieves the value of that key back from the key-value store.