A simple Swift Keychain Wrapper for iOS, watchOS, and OS X.
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.
pod "Latch"
to your podfilepod install
github "endocrimes/Latch"
to your Cartfile$ carthage update
$ git submodule add https://github.com/endocrimes/Latch.git
$ git submodule update --init --recursive
Issues and feature requests are welcome, although the intention is to keep Latch lightweight.
## Submitting Pull Requests
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)