A comprehensive extension file for all types of textfields styling written in swift

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.

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

  3. setBottomBorder : To make flat textfields that have a small border at the bottom.

  4. addRoundedCorner : To make a border around the textfield.

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

GitHub