Textfields-Styling-Extensions

All in one extension file for textfield styling.

How to use ?

  1. Drag and drop the Extension folder or extension.swift file to your project.
  2. Use the following functions as per your need.
The Extension.swift files contains various styling extensions for UITextField like the following :
  1. SetIcon : To put an icon on the left side of the textfield using UIImage.

    Email Unit

  2. AddShadowToTextField : To add a shadow to any textfield.

    Screen Shot 2020-02-02 at 8 18 36 AM
  3. setBottomBorder : To make flat textfields that have a small border at the bottom.

    Screen Shot 2020-02-02 at 8 20 03 AM
  4. addRoundedCorner : To make a border around the textfield.

    Screen Shot 2020-04-20 at 10 27 59

  5. setTextAlignment : To set a textfield with a different alignment, font size and font weight.

    Screen Shot 2020-04-20 at 10 45 54

GitHub