Start a Project

Useful UITextField Extensions

UITextField Extensions

If you’re reading this, then I assume you’re familiar with Swift Extensions. Swift Extensions add new functionality to an existing class, structure, enumeration, or protocol type. Remember, it can only add new functionality but overriding existing functionality not possible with extensions. Here I am going to share some useful UITextField Extensions.

How to use this extension:

 

How to use this extension:

Select TextField in Storyboard and Press key ⌘⌥+4 –  for Attributes Inspector, you will find a new option for placeholder color

 

How to use this extension:

 

How to use this extension:

How to use this extension:

 

How to use this extension:

 

How to use this extension:

Select UITextField in Storyboard and Press key ⌘⌥+4 –  for Attributes Inspector, you will find a new option for Max Length

 

How to use this extension:

Select UITextField in Storyboard and Press key ⌘⌥+4 –  for Attributes Inspector, you will find a new option for Corner Radius, Border Width, Border Color and Shadow Radius

 

 

Exit mobile version