Keychain provides simple mechanism (like working with NSUserDefaults) for interactions with the keychain storage.
- iOS 8.0+
- Xcode 7.3+
To integrate Keychain into your project using Carthage, specify it in your Keychain:
github "valery-bashkatov/Keychain"
And then follow the instructions to install the framework.
API Reference is located at http://valery-bashkatov.github.io/Keychain.
import Keychain
try!Keychain.setValue("Jack", forKey:"name")try!Keychain.setValue([3735565,2454548,964533], forKey:"phoneNumbers")letname=try!Keychain.getValue(forKey:"name")as!StringletphoneNumbers=try!Keychain.getValue(forKey:"phoneNumbers")as![Int]