Post

Replies

Boosts

Views

Activity

Button to another View
Hi, i have a problem. i coded a button, but now i want to make if the user clicks the button he will see another page, how can i do that? PS: this is my piece of code  ` HStack() {         Button(action: {                    // what do i have to putt here to perform the action?                            ` }, label: {           Spacer()           Text("I want chocolat!!!😱")             .font(.largeTitle)             .fontWeight(.heavy)             .foregroundColor(Color.white)             .multilineTextAlignment(.center)             .lineLimit(2)             .padding(.all, 50.0)             .shadow(radius: /*@START_MENU_TOKEN@*/300/*@END_MENU_TOKEN@*/)             .border(/*@START_MENU_TOKEN@*/Color.white/*@END_MENU_TOKEN@*/, width: /*@START_MENU_TOKEN@*/10/*@END_MENU_TOKEN@*/)           Spacer()````
1
0
410
Jul ’21