Commit Graph

10 Commits

Author SHA1 Message Date
Robert Hahn d1e42154f9 Add `.reset()` method to reset given keys back to their default value (#22)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2019-09-11 14:12:41 +07:00
Sindre Sorhus 674fde4974 Fix the source file location for SwiftPM
Closes #20
Fixes #19
2019-07-25 08:53:47 +07:00
Ander Goig 865a4b0ff3 Fix Swift 5 upgrade (#18) 2019-07-08 14:07:30 +07:00
Sindre Sorhus 12eedf762b 2.0.0 2019-04-05 14:24:30 +07:00
Sindre Sorhus 908d3b4ee1 Upgrade to Swift 5 2019-03-26 15:49:25 +07:00
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 9f24ab0eb8 Upgrade to Swift 4.2 2018-09-14 17:59:07 +07:00
Sindre Sorhus 337c302d2a Meta tweaks 2018-08-28 10:29:05 +07:00
Sindre Sorhus 7868e47910 Add support for iOS, tvOS, watchOS
Fixes #1
2018-04-16 16:50:36 +07:00
Sindre Sorhus c78c1b00b6 Init 2018-04-12 01:06:24 +07:00