Detectar arrastre en la pantalla con DragGesture
.gesture(
DragGesture(minimumDistance: 20)
.onEnded({ _ in
memory = 0.0
})
)
Detectar doble toque en la pantalla con TapGesture
TapGesture(count: 2)
.onEnded { _ in
memory = 0.0
}
Top comments (0)