All in one extension file for textfield styling.
- Drag and drop Extension.swift file to your project.
- Use the following functions as per your need.
-
setIcon : To put an icon on the left side of the textfield using UIImage.
-
addShadowToTextField : To add a shadow to any textfield.
-
setBottomBorder : To make flat textfields that have a small border at the bottom.
-
changePlaceholderColor : To change the textfield's placeholder color.
-
addRoundedCorner : To make a border around the textfield.
-
setTextAlignment : To set a textfield with a different alignment, font size and font weight.
Pull requests are welcome.