Commit Graph

24 Commits

Author SHA1 Message Date
Sindre Sorhus d98119fee4 4.1.0 2020-08-28 23:43:14 +02:00
Sindre Sorhus 110f2d2b9e Various improvements 2020-08-28 23:09:19 +02:00
Sindre Sorhus 11c4b968ef 4.0.0 2020-04-18 15:43:14 +08:00
Sindre Sorhus 12a65c057d Add `@Default` property wrapper for SwiftUI
Fixes #28
2020-04-18 15:40:41 +08:00
Sindre Sorhus 39160d389f Add workaround for Xcode bug 2020-04-18 14:37:34 +08:00
Sindre Sorhus 15c096d7fd Fix `Defaults.reset()` 2020-04-18 14:16:02 +08:00
Sindre Sorhus ca813bf449 Meta tweaks 2020-01-21 00:11:19 +07:00
Kacper Rączy 6029ac796b Combine support (#31)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2020-01-20 23:41:13 +07:00
Sindre Sorhus 55ffea9487 3.1.1 2019-10-30 19:48:27 +07:00
Sindre Sorhus 9ce53eee2e 3.1.0 2019-10-30 19:06:41 +07:00
Ian Gregory 54f970b9d7 Add `DefaultsObsevation.tieToLifetime(of:)` (#13)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2019-10-30 18:50:24 +07:00
Sindre Sorhus 75e436b5d8 3.0.0 2019-09-11 15:01:45 +07:00
Sindre Sorhus eeb8c73d7f Docs improvements 2019-09-11 14:59:40 +07:00
Sindre Sorhus 90ac6f8802 Switch to static subscript on `Defaults` 2019-09-11 14:27:52 +07:00
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