JBTextField
Tips and Tricks
-
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")
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.
