Here
How to pass argument with function call inside a class and take that argument as parameter from another class function????
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
when i add these 2 multi - dimensional array
i am not getting sum of the array
rather it is concatenation process
so guys can you help me out
Topic:
Developer Tools & Services
SubTopic:
Swift Playground
Tags:
Swift Playground
Swift Student Challenge
Education
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")