sindresorhus / Defaults

💾 Swifty and modern UserDefaults
https://swiftpackageindex.com/sindresorhus/Defaults/documentation/defaults
MIT License
1.97k stars 117 forks source link

Support types that conform to both `Codable` and `NSSecureCoding` #80

Closed sindresorhus closed 2 years ago

sindresorhus commented 2 years ago

In my app, I already had NSColor conforming to Codable, which caused a compiler ambiguity, since it already conforms to NSSecureCoding.

@hank121314 It would be nice if a user could somehow choose whether to use the Codable or NSSecureCoding for the serialization.