We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I PushView with buttons...??
This does nothing.. PushView(destination: SignInView()) { Button(action: { self.isActive.toggle() }) { HStack { Image("mail-icon") Text(" Login with Email/Mobile") .font(.custom("Avenir Next Bold", size: 14.0)) Spacer() } } .modifier(PrimaryButton(colorInput: .red)) }
PushView(destination: SignInView()) { Button(action: { self.isActive.toggle() }) { HStack { Image("mail-icon") Text(" Login with Email/Mobile") .font(.custom("Avenir Next Bold", size: 14.0)) Spacer() } } .modifier(PrimaryButton(colorInput: .red)) }
But this works fine..??
PushView(destination: SignInView()) { HStack { Image("mail-icon") Text(" Login with Email/Mobile") .font(.custom("Avenir Next Bold", size: 14.0)) Spacer() } .modifier(PrimaryButton(colorInput: .red)) }
The text was updated successfully, but these errors were encountered:
Hi @vmshaneeb! With the NavigationStack you can also push programmatically (since you were talking about Button I think this is what you want):
NavigationStack
push
Button
struct MyView: View { @EnvironmentObject private var navigationStack: NavigationStack var body: some View { Button(action: { //do whatever you want self.navigationStack.push(SignInView()) }, label: { Text("PUSH") }) } }
Sorry, something went wrong.
@matteopuc Cool... (Y)
Thanks bro...
No branches or pull requests
How do I PushView with buttons...??
This does nothing..
PushView(destination: SignInView()) { Button(action: { self.isActive.toggle() }) { HStack { Image("mail-icon") Text(" Login with Email/Mobile") .font(.custom("Avenir Next Bold", size: 14.0)) Spacer() } } .modifier(PrimaryButton(colorInput: .red)) }
But this works fine..??
PushView(destination: SignInView()) { HStack { Image("mail-icon") Text(" Login with Email/Mobile") .font(.custom("Avenir Next Bold", size: 14.0)) Spacer() } .modifier(PrimaryButton(colorInput: .red)) }
The text was updated successfully, but these errors were encountered: