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.
material-text-field
is compatible with Swift 3.
You can download the project from Github
and after doing so, copy the files in the Sources
folder to your project.
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.
let textField = GDevTextField(frame: CGRect(x: 10, y: 10, width: 200, height: 45))
textField.titleText = "Name"
textField.placeholder = "Name"
self.view.addSubview(textField)
All contributions are welcome.