hank121314
|
bf717462d9
|
Refactor internal `UserDefaults` observation class (#181)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
|
2024-08-02 14:49:53 +02:00 |
Sindre Sorhus
|
d8a954e69f
|
Fix watchOS compatibility
Fixes #175
|
2024-05-03 20:15:27 +07:00 |
Sindre Sorhus
|
ce45591c09
|
Add support for serializing `Color.Resolved` (#171)
|
2024-04-20 16:12:50 +07:00 |
Sindre Sorhus
|
17fddec4d9
|
Various tweaks
|
2024-04-20 14:51:01 +07:00 |
hank121314
|
e8370522ff
|
Add support for syncing using NSUbiquitousKeyValueStore (#136)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
|
2024-04-20 11:04:24 +07:00 |
Sindre Sorhus
|
0f73f9401a
|
Fix lint issues
|
2024-01-18 23:24:05 +07:00 |
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
|
d8a9f51056
|
Remove value wrapper from CodableBridge (#151)
Fixes #32
|
2023-10-04 17:58:57 +07:00 |
Sindre Sorhus
|
55ec93004e
|
Tweaks
|
2023-10-04 12:39:44 +07:00 |
Sindre Sorhus
|
3efef5a28e
|
Fix support for non-string keys in dictionaries (#149)
|
2023-09-14 20:42:48 +07:00 |
Leo Mehlig
|
11b6adbfcb
|
Add `.publisher()` overload that accepts an array of keys (#148)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
|
2023-09-04 05:37:37 +07:00 |
Sindre Sorhus
|
957d80773f
|
Meta tweaks
|
2023-09-03 13:44:27 +07:00 |
Leo Mehlig
|
03d5386e58
|
Fix infinite recursion when casting `AnySerializable` to wrong type (#147)
|
2023-09-03 13:37:52 +07:00 |
Sindre Sorhus
|
0f5a23fcbd
|
Tweaks
|
2023-04-17 20:48:39 +08:00 |
hank121314
|
5d1d7932a9
|
Validate the default key name and emit with Xcode runtime warning (#126)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
|
2022-12-12 18:17:27 +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 |
hank121314
|
fbc67fd179
|
Support dynamic default value (#121)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
|
2022-11-17 17:36:29 +07:00 |
hank121314
|
be7e30ba36
|
Support serializing and deserializing nested custom types (#118)
|
2022-10-28 15:27:17 +07:00 |
Sindre Sorhus
|
176aa63666
|
Minor tweaks
|
2022-10-22 00:36:48 +07:00 |
Sindre Sorhus
|
bc1af5d872
|
Upgrade to Swit 5.7
|
2022-09-22 23:57:28 +07:00 |
Sindre Sorhus
|
001adc694b
|
Make `Defaults.AnyKey` conform to `Equatable` and `Hashable` (#104)
|
2022-06-04 19:08:34 +07:00 |
hank121314
|
bab3087067
|
Add support for `ClosedRange` and `Range` (#102)
|
2022-05-12 15:24:06 +07:00 |
Sindre Sorhus
|
3535f3d088
|
Add tests for #97
|
2022-04-20 18:16:30 +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
|
64010fdcc2
|
Fix test warning
|
2022-01-25 12:34:27 +07:00 |
Sindre Sorhus
|
5b30f01e46
|
Code style tweaks
|
2021-11-15 02:53:40 +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
|
25b4efee96
|
Code style fixes
|
2021-08-17 01:05:17 +02:00 |
hank121314
|
1b629298f4
|
Add `Defaults.AnySerializable` (#73)
|
2021-07-12 14:10:43 +02:00 |
Sindre Sorhus
|
6e42795824
|
Add `.defaultValue` and `.isDefaultValue` to `@Default` (#76)
|
2021-06-18 13:15:13 +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 |
OCJvanDijk
|
6158b9bdb3
|
Fix crash in `.publisher()` caused by immediately cancelling subscriber (#66)
|
2021-04-18 23:45:37 +07:00 |
iurii iaremenko
|
760dbfb077
|
Support `.removeDuplicates()` for `Defaults.publisher` (#60)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
|
2021-02-20 20:29:15 +07:00 |
Sindre Sorhus
|
030c70a55e
|
Move to GitHub Actions
|
2021-01-25 00:08:31 +07: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
|
c9033c70cf
|
Minor tweaks
|
2020-06-21 20:23:41 +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
|
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 |