Skip to content

Commit

Permalink
[skip ci] Move alert view code
Browse files Browse the repository at this point in the history
  • Loading branch information
ncooke3 committed Oct 14, 2024
1 parent 12758ed commit da98405
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,6 @@ struct LoginView: View {
backgroundColor: .orange,
action: login
)
.alert("Enter one time passcode.", isPresented: $showingAlert) {
TextField("Verification Code", text: $onetimePasscode)
.textInputAutocapitalization(.never)
Button("Cancel", role: .cancel) {}
Button("Submit", action: submitOnetimePasscode)
}

LoginViewButton(
text: "Create Account",
accentColor: .orange,
Expand All @@ -81,6 +74,12 @@ struct LoginView: View {
Spacer()
}
.padding()
.alert("Enter one time passcode.", isPresented: $showingAlert) {
TextField("Verification Code", text: $onetimePasscode)
.textInputAutocapitalization(.never)
Button("Cancel", role: .cancel) {}
Button("Submit", action: submitOnetimePasscode)
}
}

private func login() {
Expand Down

0 comments on commit da98405

Please sign in to comment.