Reputation: 27
How can I change the navigation button in form.
Section {
NavigationLink(
destination: SignUpView(),
label: {
Text("Don't have an account?")
.foregroundColor(.gray)
})
}
Upvotes: 1
Views: 187
Reputation: 257779
I think you just need to add that link as footer of previous Section (that one containing Forgot Password?), like
Section(footer:
HStack {
Spacer()
NavigationLink(
destination: SignUpView(),
label: {
Text("Don't have an account?")
.foregroundColor(.gray)
})
}) {
Tested and worked with Xcode 12.4 / iOS 14.4
Upvotes: 2