Working with the keychain can be very tedious, and here’s an open source Swift library for working with the keychain in Swift providing a number of great features called Locksmith from Matthew Palmer.
Locksmith provides a great API for working with Locksmith with a number of very useful enums and Swift-native types. You can also extend Locksmith to add custom functionality to your own types with Locksmith functionality built-in.
Here’s an example from the readme showing how one could save data with Locksmith:
You can find Locksmith on Github here.
A great library for working with the iOS keychain.
Original article: Open Source Swift Library That Simplifies Working With The iOS Keychain
©2015 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.