Awesome
Latch
A simple Swift 2.0 Keychain Wrapper for iOS, watchOS 2, and OS X.
Usage
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)
Documentation
You can find full documentation for Latch here, or use the inline documentation.
Installation
Latch can be installed using CocoaPods, Carthage, or git submodules.
CocoaPods
- Add
pod "Latch"
to your podfile - Run
pod install
Carthage
- Add
github "endocrimes/Latch"
to your Cartfile $ carthage update
- Copy the frameworks into your Xcode project
Git Submodules
$ git submodule add https://github.com/endocrimes/Latch.git
$ git submodule update --init --recursive
- Add the project
Contributing
Issues
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