A simple UITextField with a line below it.
To run the example project, clone the repo, and run pod install
from the Example directory first.
None.
BATextField is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'BATextField'
Then on the terminal:
pod install
Drop a UITextField
into the storyboard and change the class to BATextField
. It is IBDesignable
so it should render in the view itself.
let textField = BATextField(frame: CGRect(x: x, y: y, width: yourWidth, height: yourHeight))
textField.placeholder = "Your placeholder"
view.addSubview(textField)
textField.separatorColor = UIColor.lightGrayColor()
textField.separatorHeight = 1.00
textField.placeholderColor = UIColor.lightGrayColor()
textField.aligment = .Left
view.addSubview(textField)
- Tests
- More properties
Ben, [email protected]
BATextField is available under the MIT license. See the LICENSE file for more info.