Skip to content

Instantly share code, notes, and snippets.


fitomad/keychain_query.swift Secret

Created Apr 8, 2019
What would you like to do?
// Query de búsqueda en Keychain
let query: [String: Any] = [
kSecClass as String: kSecClassGenericPassword,
kSecAttrService as String : self.serviceName,
kSecAttrAccount as String:,
kSecMatchLimit as String: kSecMatchLimitOne,
kSecReturnAttributes as String: true,
kSecReturnData as String: true
// Referencia donde recogemos el resultado
var item: CFTypeRef?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment