21 lines
468 B
Swift
21 lines
468 B
Swift
//
|
|
// LocalAuthenticationInterface.swift
|
|
// secant-testnet
|
|
//
|
|
// Created by Lukáš Korba on 12.11.2022.
|
|
//
|
|
|
|
import ComposableArchitecture
|
|
import LocalAuthentication
|
|
|
|
extension DependencyValues {
|
|
var localAuthentication: LocalAuthenticationClient {
|
|
get { self[LocalAuthenticationClient.self] }
|
|
set { self[LocalAuthenticationClient.self] = newValue }
|
|
}
|
|
}
|
|
|
|
struct LocalAuthenticationClient {
|
|
let authenticate: @Sendable () async -> Bool
|
|
}
|