Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/endocrimes/Latch
A simple Swift Keychain Wrapper for iOS, watchOS, and OS X.
https://github.com/endocrimes/Latch
Last synced: about 1 month ago
JSON representation
A simple Swift Keychain Wrapper for iOS, watchOS, and OS X.
- Host: GitHub
- URL: https://github.com/endocrimes/Latch
- Owner: endocrimes
- License: mit
- Created: 2015-09-02T20:56:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-11-11T15:39:03.000Z (about 5 years ago)
- Last Synced: 2024-05-22T13:01:55.002Z (7 months ago)
- Language: Swift
- Homepage: http://danieltomlinson.github.io/Latch
- Size: 217 KB
- Stars: 57
- Watchers: 3
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- fucking-awesome-swift - Latch - A simple Keychain Wrapper for iOS. (Libs / Security)
- awesome-swift - Latch - A simple Keychain Wrapper for iOS. (Libs / Security)
- awesome-swift - Latch - A simple Swift Keychain Wrapper for iOS, watchOS, and OS X. ` ๐ 2 years ago` (Security [๐](#readme))
- awesome-swift - Latch - A simple Keychain Wrapper for iOS. (Libs / Security)
README
# 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](https://github.com/endocrimes/Latch/blob/master/LatchTests/LatchTests.swift).```swift
import Latchlet 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](https://endocrimes.github.io/Latch), or use the inline documentation.# Installation
Latch can be installed using [CocoaPods](https://cocoapods.org), [Carthage](https://github.com/Carthage/Carthage.git), or git submodules.## CocoaPods
1. Add `pod "Latch"` to your podfile
2. Run `pod install`## Carthage
1. Add `github "endocrimes/Latch"` to your Cartfile
2. `$ carthage update`
3. Copy the frameworks into your Xcode project## Git Submodules
1. `$ git submodule add https://github.com/endocrimes/Latch.git`
2. `$ git submodule update --init --recursive`
3. Add the project# Contributing
## Issues
Issues and feature requests are welcome, although the intention is to keep Latch lightweight.##ย Submitting Pull Requests
1. Fork it ( http://github.com/endocrimes/Latch/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request