Skip to content

Commit 1306c7b

Browse files
chore: ui updates
1 parent 3e3ec72 commit 1306c7b

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Views/PhoneReauthView.swift

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ extension PhoneReauthView: View {
107107

108108
if verificationID == nil {
109109
// Initial state - sending SMS
110-
VStack(spacing: 16) {
110+
VStack(spacing: 20) {
111111
Text("We'll send a verification code to:")
112112
.font(.subheadline)
113113
.foregroundStyle(.secondary)
@@ -134,11 +134,15 @@ extension PhoneReauthView: View {
134134
.buttonStyle(.borderedProminent)
135135
.disabled(isLoading)
136136
.accessibilityIdentifier("send-verification-code-button")
137+
Button(authService.string.cancelButtonLabel) {
138+
coordinator.reauthCancelled()
139+
}
140+
137141
}
138142
.padding(.horizontal)
139143
} else {
140144
// Enter verification code
141-
VStack(spacing: 16) {
145+
VStack(spacing: 20) {
142146
Text("Enter the 6-digit code sent to:")
143147
.font(.subheadline)
144148
.foregroundStyle(.secondary)
@@ -185,16 +189,15 @@ extension PhoneReauthView: View {
185189
.buttonStyle(.bordered)
186190
.disabled(isLoading)
187191
.accessibilityIdentifier("resend-code-button")
192+
193+
Button(authService.string.cancelButtonLabel) {
194+
coordinator.reauthCancelled()
195+
}
188196
}
189197
.padding(.horizontal)
190198
}
191199

192200
Spacer()
193-
194-
Button(authService.string.cancelButtonLabel) {
195-
coordinator.reauthCancelled()
196-
}
197-
.padding(.horizontal)
198201
}
199202
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .top)
200203
.navigationBarTitleDisplayMode(.inline)

0 commit comments

Comments
 (0)