Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing typo #123

Merged
merged 1 commit into from
Feb 27, 2019
Merged

Fixing typo #123

merged 1 commit into from
Feb 27, 2019

Conversation

oaleeapp
Copy link
Contributor

Simply fixing the typo of the name of the long press protocol
CardPartsLongGestureRecognizerDelegate -> CardPartsLongPressGestureRecognizerDelegate

in example:

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 }
}

~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 }
}
```
@croossin croossin merged commit cd8f0a5 into intuit:master Feb 27, 2019
@croossin
Copy link
Contributor

Thank you @oaleeapp -- great catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants