In my iOS app, I am using UITapGesture with numberOfTapsRequired equal to two. But I need to specify the maximum duration required between two taps.
If the duration taken between two taps is greater that the specified (Say 0.5 sec) the gesture should not work.
Please guide me how can I achieve this.
Thanks in advance!
It seems like you dont need to handle the tap gesture by the way of maximum duration for each tap in your gesture. You just need to specify how many touches and taps required and in the method you can check the state of the tap gesture.
Above piece of code is from the apple documentation.