Post

Replies

Boosts

Views

Activity

How do I switch view with a simprel button...
 Hello everyone! Here is my struggle: This button is in an HStack with other three buttons. I have three views: ProfileView,(), ShopView() and MainView(). How to I add an action to this button to go from MainView() to ProfileView()? VStack {         Button (action: {                       }, label: {       Image("profilePicture")         .resizable()         .frame(width: 100, height: 100)         .padding()         .clipShape(Circle())         .overlay(Circle().stroke(Color.white, lineWidth: 4))         .shadow(radius: 05)         .padding(.trailing, 10.0)       })       } Thank you in advance! A.
1
0
483
Dec ’20