Skip to content

Commit

Permalink
Fixing typo in CardPartsLongPressGestureRecognizerDelegate (#123)
Browse files Browse the repository at this point in the history
~CardPartsLongGestureRecognizerDelegate~ -> CardPartsLongPressGestureRecognizerDelegate

in example:
```swift
extension MYOwnCardPartController: CardPartsLongPressGestureRecognizerDelegate {
	func didLongPress(_ gesture: UILongPressGestureRecognizer) {
		guard let v = gesture.view else { return }

		switch gesture.state {
		case .began:
			// Zoom in
		case .ended, .cancelled:
			// Zoom out
		default: break
		}
	}
	// Gesture starts registering after pressing for more than 0.5 seconds.
	var minimumPressDuration: CFTimeInterval { return 0.5 }
}
```
  • Loading branch information
oaleeapp authored and croossin committed Feb 27, 2019
1 parent a73925f commit cd8f0a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -1021,7 +1021,7 @@ You can set the minimumPressDuration for your press to register as gesture began
Example:

```swift
extension MYOwnCardPartController: CardPartsLongGestureRecognizerDelegate {
extension MYOwnCardPartController: CardPartsLongPressGestureRecognizerDelegate {
func didLongPress(_ gesture: UILongPressGestureRecognizer) {
guard let v = gesture.view else { return }

Expand Down

0 comments on commit cd8f0a5

Please sign in to comment.