Merge pull request #87 from petermarathas/master

Remove .changed case from long press recognizer
This commit is contained in:
Jon Andersen 2018-11-23 14:03:23 -05:00 committed by GitHub
commit 42209e4b9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,7 +97,7 @@ open class SwiftyCamButton: UIButton {
case .began: case .began:
delegate?.buttonDidBeginLongPress() delegate?.buttonDidBeginLongPress()
startTimer() startTimer()
case .ended: case .cancelled, .ended, .failed:
invalidateTimer() invalidateTimer()
delegate?.buttonDidEndLongPress() delegate?.buttonDidEndLongPress()
default: default: