Closed sindresorhus closed 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.
UserDefaults#set(dictionary, forKey: ...)
[1: true]
UserDefaults#set(dictionary, forKey: ...)
only supports a string-keyed dictionary. If you try to set[1: true]
, it currently throws an Objective-C exception.