Skip to content

Commit

Permalink
use interface to perform operations
Browse files Browse the repository at this point in the history
  • Loading branch information
cleemansen committed Aug 7, 2023
1 parent 1e4a0b4 commit 2c4fc19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iostests/Sources/DebugViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)")

Expand Down

0 comments on commit 2c4fc19

Please sign in to comment.