Latest 0.0.1
Homepage https://github.com/NicolasMahe/NMKeychain
License MIT
Platforms ios 9.0
Dependencies KeychainAccess
Frameworks UIKit
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

NMKeychain is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "NMKeychain"

Usage

Init the NMKeychain object

let dataInKeychain = NMKeychain<Date?>(
  key: "dataInKeychain_unique_key",
  identifier: "unique_keychain_identifier",
  label: "Label for this data",
  defaultValue: Date(timeIntervalSinceNow: -600),
  synchronizable: true,
  accessibility: .afterFirstUnlock,
  onChange: {
    print("data has changed")
  }
)

Set a value

dataInKeychain.value = Date()

Get the value

let date = dataInKeychain.value

Author

Nicolas Mahe, [email protected]

Dependency

KeychainAccess from Kishikawakatsumi

License

NMKeychain is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "NMKeychain",
    "version": "0.0.1",
    "summary": "Save data in Keychain with ease",
    "description": "Save data in Keychain with ease. Typed, notification and in memory.",
    "homepage": "https://github.com/NicolasMahe/NMKeychain",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Nicolas Mahu00e9": "[email protected]"
    },
    "source": {
        "git": "https://github.com/NicolasMahe/NMKeychain.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "NMKeychain/**/*.swift",
    "frameworks": "UIKit",
    "dependencies": {
        "KeychainAccess": []
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This