iOS Swift - Local Data Persistence
Identify the mistake in this Swift code snippet intended to save a password to the Keychain:
let password = "securePass" let data = password.data(using: .utf8) let query: [String: Any] = [ kSecClass as String: kSecClassGenericPassword, kSecAttrAccount as String: "user", kSecValueData as String: data as Any ] let status = SecItemAdd(query as CFDictionary, nil)
