Bot releases are visible (Hide)
https://github.com/sindresorhus/Defaults/compare/v8.1.2...v8.2.0
https://github.com/sindresorhus/Defaults/compare/v8.1.1...v8.1.2
https://github.com/sindresorhus/Defaults/compare/v8.1.0...v8.1.1
https://github.com/sindresorhus/Defaults/compare/v8.0.0...v8.1.0
Defaults.migrate()
MenuBarExtra
and NavigationStack
https://github.com/sindresorhus/Defaults/compare/v7.3.1...v8.0.0
https://github.com/sindresorhus/Defaults/compare/v7.3.0...v7.3.1
.publisher()
overload that accepts an array of keys https://github.com/sindresorhus/Defaults/commit/11b6adbfcb784a71bc9076c0e83ecd67952060e8
https://github.com/sindresorhus/Defaults/compare/v7.2.1...v7.3.0
https://github.com/sindresorhus/Defaults/compare/v7.2.0...v7.2.1
NSSecureCoding
object, you will have to make it NSSecureCoding
→ NSSecureCoding & NSObject
https://github.com/sindresorhus/Defaults/compare/v7.1.0...v7.2.0
Defaults
will now show a runtime warning inside Xcode if you use a unsupported key name.Defaults
and @Default
from anywhere without an import.
import Defaults
typealias Defaults = _Defaults
typealias Default = _Default
https://github.com/sindresorhus/Defaults/compare/v7.0.0...v7.1.0
.updates()
method to observe updates to values https://github.com/sindresorhus/Defaults/commit/7a22d378742acbef49ecff11b9de8bf8b72b34dc
.observe()
and .publisher()
. While these methods will remain for a while, they will eventually be deprecated in favor of .updates()
.https://github.com/sindresorhus/Defaults/compare/v6.3.0...v7.0.0
ClosedRange
and Range
types https://github.com/sindresorhus/Defaults/commit/bab3087067ae08cd20e629405f2b85a575783215
Defaults.AnyKey
(including Defaults.Key
) conform to Equatable
and Hashable
https://github.com/sindresorhus/Defaults/commit/001adc694b78005baf3a42a715b98f7f5610f650
Color
type https://github.com/sindresorhus/Defaults/commit/9e65eac602fe7d786275a7b3f0714474273e1781
https://github.com/sindresorhus/Defaults/compare/v6.2.1...v6.3.0
The Swift version included in Xcode 13.3 has a bug that affects Defaults. If you get a compile error, see the workaround. Make sure you also upgrade to Defaults v6.2.1 (this version).
https://github.com/sindresorhus/Defaults/compare/v6.2.0...v6.2.1
UUID
https://github.com/sindresorhus/Defaults/compare/v6.1.0...v6.2.0
Published by sindresorhus about 3 years ago
.defaultValue
and .isDefaultValue
to @Default
https://github.com/sindresorhus/Defaults/pull/76
Defaults.AnySerializable
https://github.com/sindresorhus/Defaults/pull/73
Codable
and NSSecureCoding
https://github.com/sindresorhus/Defaults/pull/80
Defaults.PreferNSSecureCoding
and Defaults.PreferRawRepresentable
https://github.com/sindresorhus/Defaults/pull/83
https://github.com/sindresorhus/Defaults/compare/v5.0.0...v6.0.0
NSSecureCodingKey
and NSSecureCodingOptionalKey
.
Key
instead.Array
is now stored as a native UserDefaults array instead of being stored as a JSON stringified string. Same with Set
and Dictionary
.Codable
. (Existing usage requires migration)
NSColor
and UIColor
.Defaults.Toggle
.Huge thanks to @hank121314 for doing a lot of the work on this release.
https://github.com/sindresorhus/Defaults/compare/v4.2.2...v5.0.0
Please help us try out this beta release. And let us know if something in the migration guide could be improved.
NSSecureCodingKey
and NSSecureCodingOptionalKey
.
Key
instead.Array
is now stored as a native UserDefaults array instead of being stored as a JSON stringified string. Same with Set
and Dictionary
.Codable
. (Existing usage requires migration)
NSColor
and UIColor
.Defaults.Toggle
.https://github.com/sindresorhus/Defaults/compare/v4.2.2...v5.0.0-beta.1
.publisher()
caused by immediately cancelling subscriber (#66) https://github.com/sindresorhus/Defaults/commit/6158b9bdb3820ab896b2323f37f5cd3b24ea8b27
https://github.com/sindresorhus/Defaults/compare/v4.2.1...v4.2.2