Commit Graph

6 Commits

Author SHA1 Message Date
Sindre Sorhus 257ce0df90
Add support for key observation and other improvements (#10)
And some other improvements:
- Shorter syntax for defining keys.
- It now writes the default value of `Defaults.Key` back to the actual UserDefaults on creation.
- Support alternative UserDefaults suites.
- Improved docs and test coverage.
2018-10-17 17:22:10 +07:00
Sindre Sorhus 0f45f544d6 Correctly set `nil` for `OptionalKey`
Fixes #8
2018-05-14 15:27:35 +07:00
Sindre Sorhus 7868e47910 Add support for iOS, tvOS, watchOS
Fixes #1
2018-04-16 16:50:36 +07:00
Lars-Jørgen Kristiansen 3dffe718a2 Fix access level for init and other tweaks
Fixes #6
2018-04-16 16:00:36 +07:00
Lars-Jørgen Kristiansen 3b7f63bc90 Use native data coding (#5) 2018-04-16 01:09:53 +07:00
Sindre Sorhus c78c1b00b6 Init 2018-04-12 01:06:24 +07:00