Elastic Bounce Effect for UITextField written in Swift

Daniel Tavares creates an interesting UI effect:

“In this tutorial, you’ll build a custom text field that makes a sweet little elastic bounce animation when it gets tapped.”

The project uses several APIs:

  • CAShapeLayer
  • CADisplayLink
  • UIView spring animations

Elastic Bounce Source Code