💎 A textField which may resolve any inconvenience while using default iOS TextField
-
Use
isTitleOnif want to show TitletestTextField.isTitleOn = true
-
Use
titleif want to declare titletestTextField.title = "Title"
-
Use
validationif want to check validationtestTextField.validation = { $0.count == 4 }
-
Use
errorMessageif want to check validationtestTextField.errorMessage = "Error!"
-
Use
validationif want to check validationtestTextField.validation = { $0.count == 4 }
-
Use
errorMessageAlignmentif want to switch alignment of error messagetestTextField.errorMessageAlignment = .left
-
Use
rightImageif want to set up image atrightViewtestTextField.rightImage = UIImage(named: "flagOfKorea")
JBTextField is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'JBTextField'1. Simply install the pod
2. Set subclass of textfield as 'JBTextField'
Jeongbae Kong, jubakong@gmail.com
JBTextField is available under the MIT license. See the LICENSE file for more info.
