Commit aaac19c6 by Daniel Dahan

pr-851: fixed spelling issue with placeholderHorizontalOffset

parent a45d1c68
......@@ -219,7 +219,7 @@ open class TextField: UITextField {
/// This property adds a padding to placeholder y position animation
@IBInspectable
open var placeholderHorizinalOffset: CGFloat = 0
open var placeholderHorizontalOffset: CGFloat = 0
/// The scale of the active placeholder in relation to the inactive
@IBInspectable
......@@ -527,9 +527,9 @@ fileprivate extension TextField {
switch textAlignment {
case .left, .natural:
placeholderLabel.x = w + placeholderHorizinalOffset
placeholderLabel.x = w + placeholderHorizontalOffset
case .right:
placeholderLabel.x = width - placeholderLabel.width - textInset + placeholderHorizinalOffset
placeholderLabel.x = width - placeholderLabel.width - textInset + placeholderHorizontalOffset
default:break
}
......@@ -673,9 +673,9 @@ extension TextField {
switch s.textAlignment {
case .left, .natural:
s.placeholderLabel.x = s.leftViewWidth + s.textInset + s.placeholderHorizinalOffset
s.placeholderLabel.x = s.leftViewWidth + s.textInset + s.placeholderHorizontalOffset
case .right:
s.placeholderLabel.x = s.width - s.placeholderLabel.width - s.textInset + s.placeholderHorizinalOffset
s.placeholderLabel.x = s.width - s.placeholderLabel.width - s.textInset + s.placeholderHorizontalOffset
default:break
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment