MESSENGER-3948 show hide login password

This commit is contained in:
Arnfried Griesert
2023-02-24 12:01:55 +00:00
parent bb5eebdaf7
commit dd425c79e0
4 changed files with 34 additions and 2 deletions
@@ -28,7 +28,7 @@ struct PasswordButtonModifier: ViewModifier {
// MARK: - Private
@Environment(\.theme) private var theme: ThemeSwiftUI
@ScaledMetric private var iconSize = 16
@ScaledMetric private var iconSize = BWIBuildSettings.shared.bwiEnableBuMUI ? 22 : 16
// MARK: - Public
@@ -38,9 +38,11 @@ struct PasswordButtonModifier: ViewModifier {
if !text.isEmpty {
Button { isSecureTextVisible.toggle() } label: {
Image(Asset.Images.authenticationRevealPassword.name)
// bwi: MESSENGER-3948
Image(isSecureTextVisible ? Asset.Images.hidePasswordButton.name : Asset.Images.revealPasswordButton.name)
.renderingMode(.template)
.resizable()
.aspectRatio(contentMode: .fit)
.frame(width: iconSize, height: iconSize)
.foregroundColor(theme.colors.secondaryContent)
}