Skip to content
A simple Swift Keychain Wrapper for iOS, watchOS, and OS X.
Swift Ruby Objective-C Makefile
Branch: master
Clone or download
Latest commit 25508a7 Jun 17, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
External Bump xcconfigs version Sep 12, 2015
Latch.xcodeproj ¯\_(ツ)_/¯ Dec 10, 2016
Latch Merge branch 'swift-3' into swift3.0 Dec 10, 2016
LatchTests Merge branch 'swift-3' into swift3.0 Dec 10, 2016
docs Release 1.2.3 Jun 4, 2016
.gitignore Add modules Sep 12, 2015
.gitmodules Add modules Sep 12, 2015
LICENSE Add LICENSE Sep 2, 2015
Latch.podspec Update url Dec 10, 2016
Makefile Release 1.2.3 Jun 4, 2016
README.md fixed documentation link Jun 17, 2019
circle.yml ¯\_(ツ)_/¯ Dec 10, 2016

README.md

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

  1. Add pod "Latch" to your podfile
  2. Run pod install

Carthage

  1. Add github "DanToml/Latch" to your Cartfile
  2. $ carthage update
  3. Copy the frameworks into your Xcode project

Git Submodules

  1. $ git submodule add https://github.com/DanToml/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/DanToml/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
You can’t perform that action at this time.