sunshinejr / SwiftyUserDefaults

Modern Swift API for NSUserDefaults
http://radex.io/swift/nsuserdefaults/static
MIT License
4.85k stars 365 forks source link

Mac Catalyst 13.0 support #225

Open Z-JaDe opened 4 years ago

Z-JaDe commented 4 years ago

'unarchiveObject(with:)' was deprecated in Mac Catalyst 13.0: Use +unarchivedObjectOfClass:fromData:error: instead 'archivedData(withRootObject:)' was deprecated in Mac Catalyst 13.0: Use +archivedDataWithRootObject:requiringSecureCoding:error: instead

I think it can support Mac Catalyst. iOS runs on Mac. Here are a few small warnings to deal with.

sunshinejr commented 4 years ago

@Z-JaDe ah yes, should be good to migrate to. Would you be open to create a PR with the changes to the archive bridges?