Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

valery-bashkatov/Keychain

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Keychain

Keychain provides simple mechanism (like working with NSUserDefaults) for interactions with the keychain storage.

Requirements

  • iOS 9.0+
  • Swift 4.1+

Installation

Carthage

To integrate Keychain into your project using Carthage, specify it in your Cartfile:

github "valery-bashkatov/Keychain" ~> 3.0.0

And then follow the instructions to install the framework.

Documentation

API Reference is located at http://valery-bashkatov.github.io/Keychain.

Usage

import Keychain

try! Keychain.setValue("Jack", forKey: "name")
try! Keychain.setValue([3735565, 2454548, 964533], forKey: "phoneNumbers")
        
let name = try! Keychain.getValue(forKey: "name") as! String
let phoneNumbers = try! Keychain.getValue(forKey: "phoneNumbers") as! [Int]

About

Keychain is as simple as NSUserDefaults

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.