24 lines
734 B
Swift
24 lines
734 B
Swift
import Foundation
|
|
import TermindDomain
|
|
import TermindPresentation
|
|
|
|
extension KeyStorage {
|
|
nonisolated var displayName: String {
|
|
switch self {
|
|
case .thisDevice: String(localized: AppStrings.Keychain.thisMac)
|
|
case .iCloud: String(localized: AppStrings.Keychain.iCloud)
|
|
case .secureEnclave: String(localized: AppStrings.Keychain.secureEnclave)
|
|
case .external: String(localized: AppStrings.SecurityKey.title)
|
|
}
|
|
}
|
|
|
|
nonisolated var symbol: String {
|
|
switch self {
|
|
case .thisDevice: "lock.laptopcomputer"
|
|
case .iCloud: "icloud.fill"
|
|
case .secureEnclave: "checkmark.shield.fill"
|
|
case .external: "key.radiowaves.forward.fill"
|
|
}
|
|
}
|
|
}
|