The SignUp is a a function that Authenticates the user with firebase. The moment the user fills out the textfields, it is pushed to firebase. But also It needs to navigate another screen.
Button(action: SignUp) { NavigationLink(destination: WalkThrough()){ Text("Sign Up").font(.title).modifier(ButtonModifiers()) } }.alert(isPresented: $showingAlert) { Alert(title: Text(alertTitle), message: Text(error), dismissButton: .default(Text("Ok"))) } https://stackoverflow.com/questions/66513091/how-do-you-make-a-button-that-calls-a-function-and-also-navigates-to-another-vie March 07, 2021 at 12:07PM
没有评论:
发表评论