This is my code:
Vstack{
List{
HStack{
NavigationLink() {
Text("Change your email")
.font(.headline)
.fontWeight(.bold)
.foregroundColor(Color("Color"))
TextField("Email",text: $Email)
.padding()
.keyboardType(.default)
.background(Color.white)
.textFieldStyle(.roundedBorder)
.shadow(color: Color.gray.opacity(0.1), radius: 5, x: 0, y: 2)
Spacer()
} label: {
Image(systemName: "rectangle.and.pencil.and.ellipsis")
Text("Check your email")
.foregroundColor(Color("Color"))
}
}
// how can i add them ?
HStack{
NavigationLink {
Text("Change your password")
.font(.headline)
.fontWeight(.bold)
.foregroundColor(Color("Color"))
TextField("password",text: $password)
.padding()
.keyboardType(.default)
.background(Color.white)
.textFieldStyle(.roundedBorder)
.shadow(color: Color.gray.opacity(0.1), radius: 5, x: 0, y: 2)
Spacer()
} label: {
Image(systemName: "rectangle.and.pencil.and.ellipsis")
Text("Check your password")
.foregroundColor(Color("Color"))
}
}
}
}
i want to change the back button and navigation title for each navigation link!
but it is not happening inside each navigation ,it will be only done on the list itself !