Change Views

I currently have the code below that I want to change views but it will not change to the GoalView()

NavigationLink(destination: GoalView()) {

                Button("Next \(Image(systemName: "chevron.forward"))") {

                }
            }
            .padding(.bottom, 30)
            .foregroundColor(.green)

Accepted Reply

I have solved it!

Replies

I have solved it!