Keychain library for reddift. MiniKeychain is developed based on KeychainAccess.
let keychain = MiniKeychain(service: "com.sonson.MiniKeychain")
let name = "name"
let password = "password"
if let data = password.data(using: .utf8) {
do {
try keychain.save(key: name, data: data)
} catch {
print(error)
}
}
MIT license.