Press "Enter" to skip to content

Playing with MRTextField


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.

Screen Shot 2016-07-30 at 9.45.50 AM

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

Screen Shot 2016-07-30 at 9.46.56 AM

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

Simulator Screen Shot 30-Jul-2016, 2.18.32 PM

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.

Simulator Screen Shot 30-Jul-2016, 10.22.26 AM

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

Author: Aaqib Hussain

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.

One Comment

  1. 987876
    987876 September 21, 2017


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

Leave a Reply

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