GMTextField are customizable TextFields based on material design.

pod try GMTextField



If you like this pod, please give me a ★ at the top right of the page!

License: MIT


GMTextField are customizable TextFields based on material design. This pod can be helpful if you want to use a simple and easy to use TextFields with cool animations. It also have a multiline textfield.

  • They have few different animations
  • They support different sizes
  • They also support side buttons, place holders and error messages
  • You can define custom verifications using completions

Check out the example if you whant to see it in action!

Preview Samples

  • One line
Scale minimize yShake Rotation shake xShake
  • Multiline
Animation Scroll

Please, Let me know if you find any problem with it.


To run the example project, clone the repo, and run pod install from the Example directory first.


  • Swift 5.
  • iOS 13 or higher.



To integrate GMTextField into your Xcode project using CocoaPods, you have to specify it in your Podfile :

source ''
platform :ios, '13.0'

pod 'GMTextField', '~> 0.8'

Then, run the following command:

$ pod install

Usage and Implementation

  1. Create a View in the View Controller you want the TextFiels, and then change the class to GMTextFieldSingularLine or GMTextFieldMultipleLines.

  2. import GMTextField

import GMTextField
  1. Create view reference in the ViewController

  1. Modify the customization you want

  1. Implement the delegate methods

  1. Run the app

NOTE: This is the first version of this pod (0.3)


protocol GMCustomization {
    var leftImage: UIImage? { get set }
    var rightImage: UIImage? { get set }
    var placeHolder: String! { get set }
    var color: UIColor! { get set }
    var textColor: UIColor? { get set }
    var textFont: UIFont? { get set }
    var errorTextFont: UIFont? { get set }
    var placeHolderTextFont: UIFont? { get set }
    var errorColor: UIColor? { get set }
    var verificationOnlyAtEnd: Bool? { get set }
    var numberOfCharacters: Int? { get set }
    var numberOfLines: Int? { get set }

You also can moodify few properties on the stpryboard


Gianpiero Mode Tw: @GianMode Linkedln:


GMTextField is available under the MIT license. See the LICENSE file for more info.