How can I make an animation on an image so when I tap it and hold it scales backwards and when I release it the image return to its original size?
struct ContentView: View {
var body: some View {
Image(systemName: "heart")
.onTapGesture {
// Gesture when held down and released
}
}
}
