File tree Expand file tree Collapse file tree
FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Views Expand file tree Collapse file tree Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments