I hope you all are doing well. I am working on a chat module in which I can record a voice memo/note. My recording a voice function runs fine but I want to add a swipe gesture like WhatsApp. I want to stop recording while swiping right while holding the button. i am looking for something like this:
thanks
I have figured it out myself. By the following code you can record a voice memo and can cancel it by swiping
I have used this code to achieve what I want to do.
then call a global variable
Call delegate method
add touchDragExit function