A simple Swift 2.0 Keychain Wrapper for iOS, watchOS 2, and OS X.
A proper example of how to use Latch can be seen in the tests.
import Latch
let latch = Latch(service: "co.rocketapps.latch.example")
latch.setObject("super_secret_token", forKey: "FBAccessToken")
let token = latch.stringForKey("FBAccessToken")
print(token)
You can find full documentation for Latch here, or use the inline documentation.
Latch can be installed using CocoaPods, Carthage, or git submodules.
- Add
pod "Latch"
to your podfile - Run
pod install
- Add
github "endocrimes/Latch"
to your Cartfile $ carthage update
- Copy the frameworks into your Xcode project
$ git submodule add https://github.com/endocrimes/Latch.git
$ git submodule update --init --recursive
- Add the project
Issues and feature requests are welcome, although the intention is to keep Latch lightweight.
## Submitting Pull Requests
- Fork it ( http://github.com/endocrimes/Latch/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request