jrendel / SwiftKeychainWrapper

A simple wrapper for the iOS Keychain to allow you to use it in a similar fashion to User Defaults. Written in Swift.
MIT License
1.59k stars 339 forks source link

Minor change to Swift 3 #81

Closed SylarRuby closed 7 years ago

SylarRuby commented 7 years ago

Swift 3 wants me to replace

KeychainWrapper.standard.remove(key: "myKey")

with:

KeychainWrapper.standard.removeObject(forKey: "myKey")

as remove is deprecated ;)

jrendel commented 7 years ago

Thats actually my own deprecation warning I added thats telling you that. Originally I used remove but then changed it to removeObject to be more consistent. You can see where I added the deprecation warning here: https://github.com/jrendel/SwiftKeychainWrapper/blob/develop/SwiftKeychainWrapper/KeychainWrapper.swift#L300