How to detect circular gesture via Gesture Recognizer?

前端 未结 4 2080
隐瞒了意图╮
隐瞒了意图╮ 2020-12-09 12:25

I am trying to implement a volume-control-like round button. Currently I can detect swipes by the Gesture Recognizer. How can I detect a circular gesture (clockwise and anti

4条回答
  •  暖寄归人
    2020-12-09 12:43

    As failing to find a solution, and by logical inspiration from @sixten's answer, I've gone and created something useful, it's not bullet proof, but it seems to do what I need for now.

    Please anyone, fork it, clone it, use it, improve it, it's open source, here's my repo link:

    https://bitbucket.org/danielphillips/dpcirculargesturerecognizer

提交回复
热议问题