Skip to content

Commit 3d00a96

Browse files
[PM-16776][PM-16693] Visual tweaks to the 2FA notice screen (#1253)
1 parent 34cbcf6 commit 3d00a96

17 files changed

+7
-6
lines changed

BitwardenShared/UI/Auth/TwoFactorNotice/EmailAccess/EmailAccessView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ struct EmailAccessView: View {
2828
store.send(.learnMoreTapped)
2929
} label: {
3030
Text(Localizations.learnMore)
31-
.styleGuide(.subheadline)
31+
.styleGuide(.callout, weight: .semibold)
3232
.foregroundStyle(Asset.Colors.textInteraction.swiftUIColor)
3333
}
3434
)
@@ -51,6 +51,7 @@ struct EmailAccessView: View {
5151
openURL(url)
5252
store.send(.clearURL)
5353
}
54+
.navigationBarHidden(true)
5455
}
5556

5657
private var toggleCard: some View {

BitwardenShared/UI/Auth/TwoFactorNotice/SetUpTwoFactor/SetUpTwoFactorView.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ struct SetUpTwoFactorView: View {
6666
openURL(url)
6767
store.send(.clearURL)
6868
}
69+
.navigationBarHidden(false)
70+
.navigationBarTitle(Localizations.twoStepLogin)
71+
.navigationBarTitleDisplayMode(.inline)
6972
}
7073
}
7174

BitwardenShared/UI/Auth/TwoFactorNotice/SetUpTwoFactor/SetUpTwoFactorViewTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class SetUpTwoFactorViewTests: BitwardenTestCase {
6565
func test_snapshot_setUpTwoFactorView_allowDelay_true() {
6666
processor.state.allowDelay = true
6767
assertSnapshots(
68-
of: subject,
68+
of: subject.navStackWrapped,
6969
as: [.defaultPortrait, .defaultPortraitDark, .defaultPortraitAX5, .defaultLandscape]
7070
)
7171
}
@@ -75,7 +75,7 @@ class SetUpTwoFactorViewTests: BitwardenTestCase {
7575
func test_snapshot_setUpTwoFactorView_allowDelay_false() {
7676
processor.state.allowDelay = false
7777
assertSnapshots(
78-
of: subject,
78+
of: subject.navStackWrapped,
7979
as: [.defaultPortrait, .defaultPortraitDark, .defaultPortraitAX5, .defaultLandscape]
8080
)
8181
}

BitwardenShared/UI/Vault/Vault/VaultCoordinator.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,6 @@ final class VaultCoordinator: Coordinator, HasStackNavigator { // swiftlint:disa
369369
/// - emailAddress: The email address of the user.
370370
private func showTwoFactorNotice(allowDelay: Bool, emailAddress: String) {
371371
let navigationController = UINavigationController()
372-
let appearance = UINavigationBarAppearance()
373-
appearance.configureWithTransparentBackground()
374-
navigationController.navigationBar.scrollEdgeAppearance = appearance
375372

376373
let coordinator = module.makeTwoFactorNoticeCoordinator(stackNavigator: navigationController)
377374
coordinator.start()

0 commit comments

Comments
 (0)