-
Notifications
You must be signed in to change notification settings - Fork 368
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
Cool stuff #6
Cool stuff #6
Conversation
So basically by just calling:
You have the following result: You can customize the color, fonts, etc. You can also add duration and a custom action if you want, haven't add it here because I don't want to have prints. There'll be stuff that needs improvements, but I think the basis is done. |
Cool story. |
let translation = panGestureRecognizer.translationInView(self) | ||
var duration: NSTimeInterval = 0 | ||
|
||
if panGestureRecognizer.state == .Changed || panGestureRecognizer.state == .Began { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you do [UIGestureRecognizerState.Changed, UIGestureRecognizerState.Began].contains(panGestureRecognizer.state)
?
Or maybe that is just weird 🤔
@zenangst & @vadymmarkov. Done. |
No description provided.