import ASTextField
@IBOutlet weak var firstNameTextField: ASTextFieldClassic!
firstNameTextField
.setName("First Name", true)
.setDelegate(self)
.setText("Amit", inputProps)
.setTitleFromName(inputProps)
.setErrorTitle("", errorProps)
.setBoxHorizontalPadding(boxHorizontalPadding)
.setBoxVerticalPadding(boxVerticalPadding)
.setLeftIcon(UIImage(named: GlobalVariable.userIcon), leftInputIconMultiplier, {textField, imageView, isOn in print(textField.getName() ?? "") })
import ASTextField
@IBOutlet weak var firstNameTextField: ASTextFieldClassic!
firstNameTextField
.setName("First Name", true)
.setDelegate(self)
.setText("Amit", ASTTextProps(UIFont.systemFont(ofSize: 12), .darkGray))
.setTitleFromName(ASTTextProps(UIFont.systemFont(ofSize: 12), .darkGray))
.setErrorTitle("", errorProps)
.setNameAsTitle(ASTTextProps(UIFont.systemFont(ofSize: 10), .black))
.setBoxHorizontalPadding(15)
.setBoxVerticalPadding(0)
.setLeftIcon(UIImage(named: GlobalVariable.userIcon), ASTMultiplier(0.4, 0.4), {textField, imageView, isOn in print(textField.getName() ?? "") })
ASTextField is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ASTextField'
[email protected], [email protected]
ASTextField is available under the MIT license. See the LICENSE file for more info.