💎 A textField which may resolve any inconvenience while using default iOS TextField
-
Use
isTitleOn
if want to show TitletestTextField.isTitleOn = true
-
Use
title
if want to declare titletestTextField.title = "Title"
-
Use
validation
if want to check validationtestTextField.validation = { $0.count == 4 }
-
Use
errorMessage
if want to check validationtestTextField.errorMessage = "Error!"
-
Use
validation
if want to check validationtestTextField.validation = { $0.count == 4 }
-
Use
errorMessageAlignment
if want to switch alignment of error messagetestTextField.errorMessageAlignment = .left
-
Use
rightImage
if want to set up image atrightView
testTextField.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, [email protected]
JBTextField is available under the MIT license. See the LICENSE file for more info.