Skip to content

⭐️ A Custom TextField for better UI and convenient use

License

Notifications You must be signed in to change notification settings

jubakong/JBTextField

Repository files navigation

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, [email protected]

License

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

About

⭐️ A Custom TextField for better UI and convenient use

Resources

License

Stars

Watchers

Forks

Packages

No packages published