Today I am going to show you guys how to create a line under UITextField using MRTextField and show you some other features of it.

First of all download the repository and drag the class MRTextField in your project or you can use pods to install.

After that drag a UITextField and set its class as MRTextField.

Run your project and you’ll see a line underneath your TextField.

You can customize it further by changing the size of Place Holder and Color of it.
Create an out let of your TextField and set the following properties to it.

Left corner and right corner icons can also be added using MRTextField.

Need a Square Bracket line? No problem. Just add.

If you have any question leave a comment and I’ll get back to you asap.
Find sample on Github.
Good Day! 🙂



Aaqib is an enthusiastic programmer with the love of Swift and anything that looks like Swift i.e Kotlin. He loves writing code in Swift, and exploring new technology and platforms. He likes to listen to old music. When he is not writing code, he's probably spend his time watching movies, tv-shows or anime, or either doing some research for writing the next article. He started Kode Snippets in 2015.

1 Comment

  • 987876, September 21, 2017 @ 6:30 am Reply


    Hi there! Quick question that¡¯s completely off topic.

Leave a Reply

Your email address will not be published. Required fields are marked *