gontovnik / DGRunkeeperSwitch

Runkeeper design switch control
MIT License
1.88k stars 175 forks source link

add ability to add another pan gesture recognizer #22

Closed romk1n closed 8 years ago

romk1n commented 8 years ago

The idea of additional pan gesture recognizer is ability to pan on the other view to control the switch. i.e. if Switch is the navigation bar, this pull request allows to pan on the main view to switch between the too :)

gontovnik commented 8 years ago

I am not sure whether this solution is good. You are setting selector in the DGRunkeeperSwitch. I would say that we have to just give UIPanGestureRecognizer to the DGRunkeeperSwitch and the only thing switch has to do, is set the delegate to itself. Thoughts?