Release 2.0.0

This commit is contained in:
Frank Rotermund
2022-11-27 13:18:53 +00:00
parent bf57719009
commit 0dc8ec0982
570 changed files with 20366 additions and 4410 deletions
@@ -18,7 +18,20 @@ import Foundation
import SwiftUI
/// View data for DeviceAvatarView
struct DeviceAvatarViewData {
struct DeviceAvatarViewData: Hashable {
let deviceType: DeviceType
let isVerified: Bool?
/// The current state of verification for the session.
let verificationState: UserSessionInfo.VerificationState
/// The name of the shield image to show for the device.
var verificationImageName: String {
switch verificationState {
case .verified:
return Asset.Images.userSessionVerified.name
case .unverified:
return Asset.Images.userSessionUnverified.name
case .unknown:
return Asset.Images.userSessionVerificationUnknown.name
}
}
}