Open abhijitpp opened 6 years ago
Hey @abhijitpp can you give some more details on this? The component is an extesions of UITextField
so any method that works for centering text in a UITextField
should be applicable
sky ignores the alignment property of the base textfield.
@abhijitpp , Update the function as below in SkyFloatingLabelTextField class -
fileprivate func updateTextAligment() { if isLTRLanguage { textAlignment = .center titleLabel.textAlignment = .center } else { textAlignment = .right titleLabel.textAlignment = .right } }
Same issue here. Can't align the text to right of text field. Can anyone help?
Report
What did you do?
ℹ I am trying to make an OTP Screen page in iOS i have achieved all the functionality just i got one issue that i want it keep the text in the middle of the textfield
What happened instead?
ℹ it starts from the exact corner of the text field
Xcode Version: 9.2 SkyFloatingLabelTextField Version: updated version Method of Integration: CocoaPods | Carthage | Manual : CocoaPods