From d495f937b6424b8e1ba47533af70ff1a67d6fb76 Mon Sep 17 00:00:00 2001 From: Mauro Romito Date: Mon, 19 Oct 2026 13:53:55 +0200 Subject: [PATCH] Show the open eye while the recovery key is hidden The eye button shows what tapping it will do, so a hidden key shows the open eye. This restores Compound's original icon order. Re-record the recovery key screen and the encryption settings out-of-sync UI test snapshots for the new field. --- .../secureBackupRecoveryKeyScreen.Incomplete-iPad-en-GB.png | 4 ++-- .../secureBackupRecoveryKeyScreen.Incomplete-iPad-pseudo.png | 4 ++-- .../secureBackupRecoveryKeyScreen.Incomplete-iPhone-en-GB.png | 4 ++-- ...secureBackupRecoveryKeyScreen.Incomplete-iPhone-pseudo.png | 4 ++-- .../encryptionSettings.testOutOfSyncFlow-iPad-en-GB-6.png | 4 ++-- .../encryptionSettings.testOutOfSyncFlow-iPhone-en-GB-6.png | 4 ++-- .../Sources/Compound/BaseStyles/CompoundTextFieldStyles.swift | 2 +- .../PreviewTests/compoundTextFieldStyle.iPad-en-US-0.png | 4 ++-- .../PreviewTests/compoundTextFieldStyle.iPhone-en-US-0.png | 4 ++-- 9 files changed, 17 insertions(+), 17 deletions(-) diff --git a/PreviewTests/Sources/__Snapshots__/PreviewTests/secureBackupRecoveryKeyScreen.Incomplete-iPad-en-GB.png b/PreviewTests/Sources/__Snapshots__/PreviewTests/secureBackupRecoveryKeyScreen.Incomplete-iPad-en-GB.png index f69dd5fbc..8821eb87d 100644 --- a/PreviewTests/Sources/__Snapshots__/PreviewTests/secureBackupRecoveryKeyScreen.Incomplete-iPad-en-GB.png +++ b/PreviewTests/Sources/__Snapshots__/PreviewTests/secureBackupRecoveryKeyScreen.Incomplete-iPad-en-GB.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4793acf1bdd66bcd53e80b406533c36c6d24fbe4c94465d3ef36d4ca91e3515c -size 106814 +oid sha256:de3731471532a6d4a5185ae2e073e7f0c4b3836e1d503eee6e6cb688064d15b8 +size 106600 diff --git a/PreviewTests/Sources/__Snapshots__/PreviewTests/secureBackupRecoveryKeyScreen.Incomplete-iPad-pseudo.png b/PreviewTests/Sources/__Snapshots__/PreviewTests/secureBackupRecoveryKeyScreen.Incomplete-iPad-pseudo.png index 29a76f719..3959db404 100644 --- a/PreviewTests/Sources/__Snapshots__/PreviewTests/secureBackupRecoveryKeyScreen.Incomplete-iPad-pseudo.png +++ b/PreviewTests/Sources/__Snapshots__/PreviewTests/secureBackupRecoveryKeyScreen.Incomplete-iPad-pseudo.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:08b20475356dc4a07c98b807d76a9774e72b7c0917ee1283efd5c4c379eecc89 -size 121744 +oid sha256:b0cba3e16a3af20552e326986a30b9dd0a494e9bfd9f50cd1b093841ba70072a +size 121529 diff --git a/PreviewTests/Sources/__Snapshots__/PreviewTests/secureBackupRecoveryKeyScreen.Incomplete-iPhone-en-GB.png b/PreviewTests/Sources/__Snapshots__/PreviewTests/secureBackupRecoveryKeyScreen.Incomplete-iPhone-en-GB.png index d87e6defe..003abd249 100644 --- a/PreviewTests/Sources/__Snapshots__/PreviewTests/secureBackupRecoveryKeyScreen.Incomplete-iPhone-en-GB.png +++ b/PreviewTests/Sources/__Snapshots__/PreviewTests/secureBackupRecoveryKeyScreen.Incomplete-iPhone-en-GB.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b49168b74b4db5b175c6bee22a45809ce444beb10725045d987d73e9cc91525a -size 62958 +oid sha256:2f633b1173f08a8ec966b21773cef922afcae48db8c6b459d22c0328f1d14acc +size 62829 diff --git a/PreviewTests/Sources/__Snapshots__/PreviewTests/secureBackupRecoveryKeyScreen.Incomplete-iPhone-pseudo.png b/PreviewTests/Sources/__Snapshots__/PreviewTests/secureBackupRecoveryKeyScreen.Incomplete-iPhone-pseudo.png index ed32ab042..4f863e493 100644 --- a/PreviewTests/Sources/__Snapshots__/PreviewTests/secureBackupRecoveryKeyScreen.Incomplete-iPhone-pseudo.png +++ b/PreviewTests/Sources/__Snapshots__/PreviewTests/secureBackupRecoveryKeyScreen.Incomplete-iPhone-pseudo.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:125c57f171d1a4178d645de5e6e47c92763fdf0868871f15e78a181b84bd1ab5 -size 84092 +oid sha256:443ff70cf7b4480a39382e751e9e810deae1935b47110c5c7e436d78f395bd30 +size 83931 diff --git a/UITests/Sources/__Snapshots__/Application/encryptionSettings.testOutOfSyncFlow-iPad-en-GB-6.png b/UITests/Sources/__Snapshots__/Application/encryptionSettings.testOutOfSyncFlow-iPad-en-GB-6.png index 3a3eccc63..51692194e 100644 --- a/UITests/Sources/__Snapshots__/Application/encryptionSettings.testOutOfSyncFlow-iPad-en-GB-6.png +++ b/UITests/Sources/__Snapshots__/Application/encryptionSettings.testOutOfSyncFlow-iPad-en-GB-6.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:162d6904835ba6edf05570f4bed38958815cfd1fe208111131edb3eb73b773b4 -size 175402 +oid sha256:e114db5cc786da6c223dc3e00919c50ec9c064afd77be33287a2bf29014e12e9 +size 177544 diff --git a/UITests/Sources/__Snapshots__/Application/encryptionSettings.testOutOfSyncFlow-iPhone-en-GB-6.png b/UITests/Sources/__Snapshots__/Application/encryptionSettings.testOutOfSyncFlow-iPhone-en-GB-6.png index 6b2594532..3979f3e0a 100644 --- a/UITests/Sources/__Snapshots__/Application/encryptionSettings.testOutOfSyncFlow-iPhone-en-GB-6.png +++ b/UITests/Sources/__Snapshots__/Application/encryptionSettings.testOutOfSyncFlow-iPhone-en-GB-6.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:75a4633253a8a45dc0dbdc8d7680f7ac54c7328c6d7a9897e24de95a6281a6b3 -size 116297 +oid sha256:696a17069766620a60053c98af1f243e8d5357ef87c29967a8f8a59999519c6b +size 119793 diff --git a/compound-ios/Sources/Compound/BaseStyles/CompoundTextFieldStyles.swift b/compound-ios/Sources/Compound/BaseStyles/CompoundTextFieldStyles.swift index e94428257..913e27005 100644 --- a/compound-ios/Sources/Compound/BaseStyles/CompoundTextFieldStyles.swift +++ b/compound-ios/Sources/Compound/BaseStyles/CompoundTextFieldStyles.swift @@ -233,7 +233,7 @@ public struct CompoundTextFieldStyle: @MainActor TextFieldStyle { isSecureTextRevealed.toggle() secureTextField?.isSecureTextEntry = !isSecureTextRevealed } label: { - CompoundIcon(isSecureTextRevealed ? \.visibilityOn : \.visibilityOff, + CompoundIcon(isSecureTextRevealed ? \.visibilityOff : \.visibilityOn, size: .medium, relativeTo: .compound.bodyLG) .foregroundStyle(.compound.iconSecondary) diff --git a/compound-ios/Tests/CompoundTests/__Snapshots__/PreviewTests/compoundTextFieldStyle.iPad-en-US-0.png b/compound-ios/Tests/CompoundTests/__Snapshots__/PreviewTests/compoundTextFieldStyle.iPad-en-US-0.png index 536be53b7..923f603c1 100644 --- a/compound-ios/Tests/CompoundTests/__Snapshots__/PreviewTests/compoundTextFieldStyle.iPad-en-US-0.png +++ b/compound-ios/Tests/CompoundTests/__Snapshots__/PreviewTests/compoundTextFieldStyle.iPad-en-US-0.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b57abd80aba38391fbbd911f786fed1836caa60ffa3dd7af715472f44bc2b3de -size 242911 +oid sha256:dbd4787ecee53978e01e90782f8e8704a424b486ed27f06fece2e5e5113b86aa +size 241919 diff --git a/compound-ios/Tests/CompoundTests/__Snapshots__/PreviewTests/compoundTextFieldStyle.iPhone-en-US-0.png b/compound-ios/Tests/CompoundTests/__Snapshots__/PreviewTests/compoundTextFieldStyle.iPhone-en-US-0.png index 05dc8b035..b3decedc7 100644 --- a/compound-ios/Tests/CompoundTests/__Snapshots__/PreviewTests/compoundTextFieldStyle.iPhone-en-US-0.png +++ b/compound-ios/Tests/CompoundTests/__Snapshots__/PreviewTests/compoundTextFieldStyle.iPhone-en-US-0.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f53a05a7d169748808ffeb7869dc84846bf30371c7800087b3b1ad6a17d26b24 -size 151511 +oid sha256:60ee1c44ab8ed1895c529c2c4d1bb749e6f71f73b3adbff2a67d0965c63af807 +size 150593