Swift taps and swipes detector (the hard way)