I'm trying to improve UX by giving some feedback when the NavigationLink() is pressed. By this I mean a simple animation that grows then shrinks the link to show that it was pressed or any other way to provide feedback.
This is the code I'm trying to improve:
NavigationLink(
destination: TrickView(trickId: begginerTricks[index]["trickId"] as! String),
label: {
TrickRowView(name: begginerTricks[index]["trickName"] as! String,
trickType: begginerTricks[index]["trickType"] as! String,
trickComplete: [false,false,false,false],
width: width * 0.73, height: height * 0.13)
})
.padding(.bottom, 15)
This is one NavigationLink in a list of navigation links.
Any help on how to do this would be appreciated.