gasigo / material-text-field

GDevTextField is a nice, flexible and customizable text field. This design is based on Google's Material Design and is very much customizable and extensible.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Material Text Field

material-text-field is a nice, flexible and customizable text field. This design is based on Google's Material Design and is very much customizable and extensible.

Compatibility

material-text-field is compatible with Swift 3.

Installation

You can download the project from Github and after doing so, copy the files in the Sources folder to your project.

Usage

Interface Builder

Most of the material-text-field's properties are editable by the interface builder. This makes it much faster and easier to use. All you have to do is drag a UITextField and change it's Class to GDevTextField as shown below.

After that, you will be able to see IBDesignables properties on xcode as shown below.

Code

let textField = GDevTextField(frame: CGRect(x: 10, y: 10, width: 200, height: 45))
textField.titleText = "Name"
textField.placeholder = "Name"
self.view.addSubview(textField)

Contributing

All contributions are welcome.

About

GDevTextField is a nice, flexible and customizable text field. This design is based on Google's Material Design and is very much customizable and extensible.

License:MIT License


Languages

Language:Swift 93.8%Language:Objective-C 6.2%