KeychainAccess is a simple Swift wrapper for Keychain that works on iOS and OS X. Makes using Keychain APIs extremely easy and much more palatable to use in Swift. If you want to store the Touch ID protected Keychain item, specify accessibility and authenticationPolicy attributes. Do not run in the main thread if there is a possibility that the item you are trying to add already exists, and protected. Because updating protected items requires authentication. Additionally, you want to show custom authentication prompt message when updating, specify an authenticationPrompt attribute. If the item not protected, the authenticationPrompt parameter just be ignored. The same way as when you get a normal item. It will be displayed automatically Touch ID or passcode authentication If the item you try to get is protected. The same way as when you remove a normal item. There is no way to show Touch ID or passcode authentication when removing Keychain items.
Features
- Simple interface
- Support access group
- Support accessibility
- Support TouchID and Keychain integration (iOS 8+)
- watchOS and tvOS are supported
- Works on both iOS & macOS