22 lines
608 B
Swift
22 lines
608 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)
|
|
}
|
|
}
|
|
|
|
nonisolated var symbol: String {
|
|
switch self {
|
|
case .thisDevice: "lock.laptopcomputer"
|
|
case .iCloud: "icloud.fill"
|
|
case .secureEnclave: "checkmark.shield.fill"
|
|
}
|
|
}
|
|
}
|