Commit Graph

150 Commits

Author SHA1 Message Date
Sindre Sorhus a89f799930
Add variadic generics version of `Defaults.updates()` (#191) 2024-10-04 17:27:57 +07:00
Sindre Sorhus 1f693cde80 Tweaks 2024-09-30 19:03:19 +07:00
Sindre Sorhus 72264f116f Convert tests to Swift Testing 2024-09-26 11:04:49 +07:00
Sindre Sorhus 4c009d5c24 Minor tweaks 2024-08-12 23:39:19 +02:00
hank121314 174b791fec
Disable syncing from local if its default after `iCloud.add` (#185)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2024-08-12 22:50:47 +02:00
hank121314 bf717462d9
Refactor internal `UserDefaults` observation class (#181)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2024-08-02 14:49:53 +02:00
Keita Watanabe b8c1e7c869
Add some Sendable conformances (#182) 2024-07-23 14:04:02 +02:00
Keita Watanabe 5c6d5bfaf0
Use explicit `any` (#180)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2024-07-14 01:56:39 +02:00
Sindre Sorhus d8a954e69f Fix watchOS compatibility
Fixes #175
2024-05-03 20:15:27 +07:00
Jordi Bruin 7f67c5ca11
Fix missing import (#174) 2024-04-30 16:59:17 +07:00
Sindre Sorhus 1064186b3d Improve performance of `Defaults.updates()` 2024-04-24 02:22:25 +07:00
Sindre Sorhus 23e0a4497e Add support for serializing `NSFontDescriptor` and `UIFontDescriptor` 2024-04-20 16:20:10 +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
Sindre Sorhus e800493235 Require watchOS 9 or later 2024-04-20 11:14:57 +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 38925e3cfa Improve compatibility with strict concurrency
Fixes #167
2024-02-20 20:08:14 +07:00
Keita Watanabe adc090e939
Fix missing key in privacy manifest (#166) 2024-02-13 19:45:13 +07:00
Sindre Sorhus bde740c9b4 Fix location of the privacy manifest 2024-02-11 16:18:45 +07:00
Keita Watanabe 9818a31809
Add privacy manifest (#163) 2024-02-10 16:20:39 +07:00
Sindre Sorhus 0f73f9401a Fix lint issues 2024-01-18 23:24:05 +07:00
Wouter Hennen 2dad0e446e
Fix for freeze in `MenuBarExtra` and `NavigationStack` (#158) 2024-01-18 23:10:16 +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 bd14dae265 Readme tweaks 2023-06-03 01:51:42 +03:00
Sindre Sorhus 488ff7dd71 Meta tweaks 2023-04-25 02:05:28 +07:00
Sindre Sorhus 0f5a23fcbd Tweaks 2023-04-17 20:48:39 +08:00
Sindre Sorhus 8584d1d6ed
Switch from deprecated NSSecureCoding API (#132)
Fixes #131
2023-04-07 11:49:00 +09:00
Sindre Sorhus a09d7c8957 Tweaks 2023-04-06 15:37:46 +09:00
Sindre Sorhus d71bfd8ffb Minor tweaks 2022-12-12 18:23:29 +01: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 5cf1178d34
Make it possible to import the package once for a whole project (#125) 2022-11-28 14:17:10 +07: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
Sindre Sorhus 35943225a0
Remove `DefaultsBaseKey` (#123) 2022-11-18 10:53:54 +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 1b1a057220 Use Swift Package Index for docs 2022-11-13 16:29:31 +07:00
Sindre Sorhus dd44190ddf Improve docs for the defaults key
Closes #59
2022-11-09 00:48:19 +07:00
hank121314 be7e30ba36
Support serializing and deserializing nested custom types (#118) 2022-10-28 15:27:17 +07:00
Sindre Sorhus b23fb7b057 Fix tests 2022-10-27 16:48:14 +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 981ccb0a01 Minor tweaks 2022-06-10 14:58:24 +07:00