/JBTextField

⭐️ A Custom TextField for better UI and convenient use

Primary LanguageSwiftMIT LicenseMIT

JBTextField

CI Status Version License Platform

💎 A textField which may resolve any inconvenience while using default iOS TextField

ezgif com-gif-maker

Tips and Tricks

  • Use isTitleOn if want to show Title

    testTextField.isTitleOn = true
  • Use title if want to declare title

     testTextField.title = "Title"
  • Use validation if want to check validation

    testTextField.validation = { $0.count == 4 }
  • Use errorMessage if want to check validation

    testTextField.errorMessage = "Error!"
  • Use validation if want to check validation

    testTextField.validation = { $0.count == 4 }
  • Use errorMessageAlignment if want to switch alignment of error message

    testTextField.errorMessageAlignment = .left
  • Use rightImage if want to set up image at rightView

    testTextField.rightImage = UIImage(named: "flagOfKorea")

Installation

JBTextField is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'JBTextField'

How to Setup

1. Simply install the pod
2. Set subclass of textfield as 'JBTextField'

Author

Jeongbae Kong, jubakong@gmail.com

License

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