Connect with us

Articles

How to add a nice UITextField animation to your iOS App using Swift

Who else is bored of squared text fields with rounded corners?

Who else is bored of squared text fields with rounded corners? I know I am. I was coding for my first app Rivyou when I realised that Apple’s default design for text fields is just not for me.

But… what was the alternative? A rectangle with rough edges? Ew, that’s the opposite of design. A text field with no borders? Interesting, but too empty. So how about a line under the no borders text field? Now we’re talking!

With just a few lines of code, you can make your text field look just as nice and keep your apps design catchy for your users!

  1. Create the lines
    • UITextField
    • UIView
  2. Connect it to your class
  3. Add the animation
Full Article: Margels @ Medium

Advertisement

Trending