Hello, i got a problem when i want to retrieve allkeys from keychain.
It retrive me an empty array and .capacity() give me 0 value.
But when i want to retrieve an specific key it works...
let keychainwraper = KeychainWrapper(serviceName: "keychain", accessGroup:nil)
keychainwraper.set("sam", forKey: "name")
print(keychainwraper!.string(forKey: "name")) /// sam
let keys = keychainwraper!.allKeys()
print(keys) //[Set([])]
print(keychainwraper!.allKeys().count) // 0
im using, 12.1 simulator, xcode 10.1 and swift 4.1
Hello, i got a problem when i want to retrieve allkeys from keychain. It retrive me an empty array and .capacity() give me 0 value. But when i want to retrieve an specific key it works... let keychainwraper = KeychainWrapper(serviceName: "keychain", accessGroup:nil)
keychainwraper.set("sam", forKey: "name") print(keychainwraper!.string(forKey: "name")) /// sam
let keys = keychainwraper!.allKeys() print(keys) //[Set([])] print(keychainwraper!.allKeys().count) // 0
im using, 12.1 simulator, xcode 10.1 and swift 4.1