Commit Graph

74 Commits

Author SHA1 Message Date
Sindre Sorhus 46dfe48645
Remove v5 migration functionality (#159) 2024-01-18 20:00:21 +07:00
Sindre Sorhus fcdf1967b9 Target macOS 11, iOS 13, tvOS 14, watchOS 7, visionOS 1 and later 2024-01-18 16:42:17 +07:00
Sindre Sorhus bd14dae265 Readme tweaks 2023-06-03 01:51:42 +03:00
Sindre Sorhus d71bfd8ffb Minor tweaks 2022-12-12 18:23:29 +01:00
Sindre Sorhus 7a22d37874 Add `.updates()` method
Fixes #77
2022-11-19 14:42:48 +07:00
Sindre Sorhus ea11b7ac4f Target macOS 10.15, iOS 13, tvOS 13, watchOS 6 2022-11-18 16:50:27 +07:00
Sindre Sorhus 60013d90e2 Improve documentation 2022-11-18 15:42:31 +07:00
hank121314 fbc67fd179
Support dynamic default value (#121)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2022-11-17 17:36:29 +07:00
Sindre Sorhus dd44190ddf Improve docs for the defaults key
Closes #59
2022-11-09 00:48:19 +07:00
Sindre Sorhus bc1af5d872 Upgrade to Swit 5.7 2022-09-22 23:57:28 +07:00
Sindre Sorhus d1e2109fc9 Minor tweaks 2022-05-14 13:15:43 +07:00
hank121314 bab3087067
Add support for `ClosedRange` and `Range` (#102) 2022-05-12 15:24:06 +07:00
hank121314 119f654d44
Xcode 13.3 workaround (#95)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2022-03-16 00:28:40 +07:00
Sindre Sorhus c9198bb1d0
Add support for `UUID` (#92) 2022-01-27 22:14:21 +07:00
Sindre Sorhus a6c1c064fa Document benefits over `@AppStorage` 2022-01-23 13:43:12 +07:00
hank121314 55f3302c3a
Add support for SwiftUI `Color` (#84)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2021-10-16 19:01:16 +07:00
Sindre Sorhus 8a6e4a96fd Require macOS 10.13, iOS 12, tvOS 12, watchOS 5
Fixes #81
2021-10-12 14:04:16 +07:00
hank121314 5f16cefebe
Add `Defaults.PreferNSSecureCoding` and `Defaults.PreferRawRepresentable` (#83)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2021-10-12 14:03:34 +07:00
Sindre Sorhus 04f9b3f45e
Support types that conform to both `Codable` and `NSSecureCoding` (#80) 2021-09-11 10:49:06 +07:00
Sindre Sorhus d9cc31d368 Meta tweaks 2021-08-15 11:30:23 +02:00
Sindre Sorhus 012a475cc0 Minor documentation tweaks 2021-07-12 14:24:20 +02:00
hank121314 1b629298f4
Add `Defaults.AnySerializable` (#73) 2021-07-12 14:10:43 +02:00
Sindre Sorhus 63d93f97ad
Add `Defaults.Toggle` (#69) 2021-05-18 19:56:55 +07:00
Sindre Sorhus 64351c25ed Welcome @hank121314 as a maintainer 🎉 2021-05-18 15:29:03 +07:00
Sindre Sorhus 9e034d8b44 Drop support for Carthage and CocoaPods
Fixes #62
2021-05-17 01:17:57 +07:00
Sindre Sorhus 4a0f5e7c3e Clean up some docs 2021-05-17 00:16:21 +07:00
hank121314 534157f1b5 Add a `Defaults.Serializable` protocol (#57)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2021-05-16 23:52:46 +07:00
Sindre Sorhus f64b3ca562
Add related package to readme 2021-05-01 18:38:56 +07:00
Sindre Sorhus 030c70a55e Move to GitHub Actions 2021-01-25 00:08:31 +07:00
Sindre Sorhus 5b44e9fac2
Fix readme typo
#58
2020-12-29 22:55:15 +07:00
Sindre Sorhus 1e2b2dc9ba Welcome @fredyshox as a maintainer 🎉 2020-08-29 01:57:07 +02:00
Sindre Sorhus 110f2d2b9e Various improvements 2020-08-28 23:09:19 +02:00
Kacper Rączy ab8127604c
Add ability to subscribe to multiple keys and to prevent propagation (#49)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2020-08-28 22:12:29 +02:00
Sindre Sorhus ed390e9ac7 Minor tweaks 2020-06-04 16:51:14 +08:00
Sindre Sorhus f67098fd5c
Fix Swift Package Manager install instruction 2020-05-18 13:01:16 +08:00
Sindre Sorhus 33ad1a246b
Add related project to the readme 2020-05-07 23:27:59 +08: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 5df16e0d2e Remove `Defaults.publisherAll` until #42 is fixed 2020-04-18 14:21:31 +08:00
Sindre Sorhus c20b7d820c Fix `Defaults.publisher(keys:)` 2020-04-18 14:19:38 +08:00
Sindre Sorhus 15c096d7fd Fix `Defaults.reset()` 2020-04-18 14:16:02 +08:00
Sindre Sorhus 77c05abe10 Document how to store a dictionary of arbitrary values
Fixes #36
2020-04-13 13:39:25 +08:00
Sindre Sorhus 8376ca7f51 Remove the `.old` and `.new` options
They are now `true` by default.

Fixes #33
2020-04-13 13:15:13 +08:00
Sindre Sorhus 31b56ce018 Rename `DefaultsObservation` to `Defaults.Observation` 2020-04-13 12:31:54 +08:00
Sindre Sorhus b2fdee2055 Get rid of `OptionalKey` 2020-04-13 12:25:18 +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 a2e2be2d5d
Update readme.md 2020-01-09 17:39:31 +07:00
Sindre Sorhus 55ffea9487 3.1.1 2019-10-30 19:48:27 +07:00