From 2c4fc19f0faa58e8028f021b70aa636c73834d57 Mon Sep 17 00:00:00 2001 From: Clemens Hahn Date: Mon, 7 Aug 2023 12:59:33 +0200 Subject: [PATCH] use interface to perform operations --- iostests/Sources/DebugViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iostests/Sources/DebugViewController.swift b/iostests/Sources/DebugViewController.swift index 573999b..8f248c9 100644 --- a/iostests/Sources/DebugViewController.swift +++ b/iostests/Sources/DebugViewController.swift @@ -35,11 +35,11 @@ class DebugViewController: UIViewController { } @objc func debug() { - let vault = KVaultKeychain(serviceName: "DEBUG", accessGroup: nil, accessibility: KVaultKeychain.Accessible.afterfirstunlock) + let vault = KVaultKeychain(serviceName: "DEBUG", accessGroup: nil, accessibility: KVaultKeychain.Accessible.afterfirstunlock) as KVault self.performOperations(on: vault) } - private func performOperations(on vault: KVaultKeychain) { + private func performOperations(on vault: KVault) { vault.set(key: keyA, boolValue: true) print("Value for \(keyA): \(vault.bool(forKey: keyA) ?? false)")