Post not yet marked as solved
Post marked as unsolved with 0 replies, 487 views
I am using navigation link to navigate using a button
which is log out button
when i click the button it takes me straight to login page
i want the transition effect of the page to start from right to left instead of the opposite which is occurring
NavigationLink("", destination: login(),isActive: $goWhenTrue)
Button (action: { print("Button Tapped")}, label: {
Text("LogOut")
.font(.headline)
.foregroundColor(.white)
.frame(width: 340, height: 50)
.background(Color.blue)
.clipShape(Capsule())
.padding()
.onTapGesture {
self.goWhenTrue = true
if ((UserDefaults.standard.string(forKey: "Username") != nil)) {
UserDefaults.standard.removeObject(forKey: "Username")