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

Support tap instead of touch? #30

Open
instaqwe opened this issue Jun 9, 2015 · 0 comments
Open

Support tap instead of touch? #30

instaqwe opened this issue Jun 9, 2015 · 0 comments

Comments

@instaqwe
Copy link

instaqwe commented Jun 9, 2015

Anyone know how one would implement the animations with tap instead of touch? The textfield for example:

 override public func beginTrackingWithTouch(touch: UITouch, withEvent event: UIEvent) -> Bool {
    mkLayer.didChangeTapLocation(touch.locationInView(self))

    mkLayer.animateScaleForCircleLayer(0.45, toScale: 1.0, timingFunction: MKTimingFunction.Linear, duration: CFTimeInterval(self.rippleAniDuration))
    mkLayer.animateAlphaForBackgroundLayer(MKTimingFunction.Linear, duration: CFTimeInterval(self.backgroundAniDuration))

    return super.beginTrackingWithTouch(touch, withEvent: event)
}
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

No branches or pull requests

1 participant