TextField with bottom indicator written with Swift
- Bottom indicator pattern
- Change indicator height
- Change indicator color
- Change selected indicator color
- Set Placeholder Text With Custom Color and Font
Download the file from source folder and copy to your project.
- Drag a UITextField instance into your UIViewController/UIView
- Change the class of the UIView instance to
HSIndicatorTextfield
. - Link to the IBOutlet instance of your UIViewController/UIView.
34
Create an HSIndicatorTextfield
instance and add to superview
35
let indicatorTXF = HSIndicatorTextfield(frame: frame)
self.view.addSubview(indicatorTXF)
HSIndicatorTextfield is available under the MIT license. See the LICENSE file for more info.
Hasan Sedaghat - [email protected]