Swipe view inspired by Tinder
Run in phyical device for better clarity
@objc func longPressAction(gesture : UILongPressGestureRecognizer){
switch gesture.state {
case .began :
new.show(in: view)
case .changed:
new.panGestureForCircle(pan: gesture)
case .ended:
new.panGestureForCircle(pan: gesture)
new.dismiss()
case .cancelled,
.possible,
.failed: break
}
}
}
* Swift 4
* XCode 9
* iOS 9.0 (Min SDK)
Nicky Patson
GradientSlider is available under the MIT license. See the LICENSE file for more info.