mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 16:42:44 +02:00
MESSENGER-3948 show hide login password
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user