I want to store a Swift Set in NSUserDefaults.
Given that I can read a NSMutableSet value from UserDefaults using:
UserDefaults.standard.mutableSetValue(forKey:)
... it seems like I should be able to write a NSMutableSet too.
I tried converting my Set to NSMutableSet, but when I try to save it in UserDefaults it says:
[User Defaults] Attempt to set a non-property-list object {( foo )} as an NSUserDefaults/CFPreferences value for key KEYNAME