Skip to content

Commit da98405

Browse files
committed
[skip ci] Move alert view code
1 parent 12758ed commit da98405

File tree

1 file changed

+6
-7
lines changed
  • FirebaseAuth/Tests/SampleSwift/AuthenticationExample/CustomViews

1 file changed

+6
-7
lines changed

FirebaseAuth/Tests/SampleSwift/AuthenticationExample/CustomViews/LoginView.swift

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,6 @@ struct LoginView: View {
6262
backgroundColor: .orange,
6363
action: login
6464
)
65-
.alert("Enter one time passcode.", isPresented: $showingAlert) {
66-
TextField("Verification Code", text: $onetimePasscode)
67-
.textInputAutocapitalization(.never)
68-
Button("Cancel", role: .cancel) {}
69-
Button("Submit", action: submitOnetimePasscode)
70-
}
71-
7265
LoginViewButton(
7366
text: "Create Account",
7467
accentColor: .orange,
@@ -81,6 +74,12 @@ struct LoginView: View {
8174
Spacer()
8275
}
8376
.padding()
77+
.alert("Enter one time passcode.", isPresented: $showingAlert) {
78+
TextField("Verification Code", text: $onetimePasscode)
79+
.textInputAutocapitalization(.never)
80+
Button("Cancel", role: .cancel) {}
81+
Button("Submit", action: submitOnetimePasscode)
82+
}
8483
}
8584

8685
private func login() {

0 commit comments

Comments
 (0)