KeychainStore

3.1.0

Swift 5 Framework to access the Keychain in iOS
JuanjoArreola/KeychainStore

What's New

3.1.0

2020-09-09T17:09:08Z

Stable release

Changes

  • Added support for swift 5

KeychainStore

Swift 5 Framework to access the Keychain

Cocoapods Platform License codebeat badge

Swift version Latest version
4.1 3.0.4
5.0 3.1.0

Usage

KeychainStore<T: Codable> is a generic class that stores instances of classes that conform to the Codable protocol

let store = KeychainStore<Card>(account: "test")
let card = Card(number: "4111111111111111", name: "Me")

// save card:
try store.set(object: card, forKey: "my card")
// 	or:
try store.set(object: card, forKey: "my card", accessibility: .whenPasscodeSetThisDeviceOnly)

// get card
let card = try store.object(forKey: "my card")

Additionally, the class KeychainStringStore saves String instances in the Keychain.

Description

  • Swift Tools 4.0.0
View More Packages from this Author

Dependencies

  • None
Last updated: Thu Oct 17 2024 20:17:47 GMT-0900 (Hawaii-Aleutian Daylight Time)