sindresorhus / Defaults

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

Fix support for non-string keys in dictionaries #149

Closed sindresorhus closed 1 year ago

sindresorhus commented 1 year ago

UserDefaults#set(dictionary, forKey: ...) only supports a string-keyed dictionary. If you try to set [1: true], it currently throws an Objective-C exception.