Commit aaac19c6 by Daniel Dahan

pr-851: fixed spelling issue with placeholderHorizontalOffset

parent a45d1c68
...@@ -210,28 +210,28 @@ open class TextField: UITextField { ...@@ -210,28 +210,28 @@ open class TextField: UITextField {
open var placeholderActiveColor = Color.blue.base { open var placeholderActiveColor = Color.blue.base {
didSet { didSet {
updatePlaceholderLabelColor() updatePlaceholderLabelColor()
} }
} }
/// This property adds a padding to placeholder y position animation /// This property adds a padding to placeholder y position animation
@IBInspectable @IBInspectable
open var placeholderVerticalOffset: CGFloat = 0 open var placeholderVerticalOffset: CGFloat = 0
/// This property adds a padding to placeholder y position animation /// This property adds a padding to placeholder y position animation
@IBInspectable @IBInspectable
open var placeholderHorizinalOffset: CGFloat = 0 open var placeholderHorizontalOffset: CGFloat = 0
/// The scale of the active placeholder in relation to the inactive /// The scale of the active placeholder in relation to the inactive
@IBInspectable @IBInspectable
open var placeholderActiveScale: CGFloat = 0.75 { open var placeholderActiveScale: CGFloat = 0.75 {
didSet { didSet {
layoutPlaceholderLabel() layoutPlaceholderLabel()
} }
} }
/// The detailLabel UILabel that is displayed. /// The detailLabel UILabel that is displayed.
@IBInspectable @IBInspectable
open let detailLabel = UILabel() open let detailLabel = UILabel()
/// The detailLabel text value. /// The detailLabel text value.
@IBInspectable @IBInspectable
...@@ -527,9 +527,9 @@ fileprivate extension TextField { ...@@ -527,9 +527,9 @@ fileprivate extension TextField {
switch textAlignment { switch textAlignment {
case .left, .natural: case .left, .natural:
placeholderLabel.x = w + placeholderHorizinalOffset placeholderLabel.x = w + placeholderHorizontalOffset
case .right: case .right:
placeholderLabel.x = width - placeholderLabel.width - textInset + placeholderHorizinalOffset placeholderLabel.x = width - placeholderLabel.width - textInset + placeholderHorizontalOffset
default:break default:break
} }
...@@ -673,9 +673,9 @@ extension TextField { ...@@ -673,9 +673,9 @@ extension TextField {
switch s.textAlignment { switch s.textAlignment {
case .left, .natural: case .left, .natural:
s.placeholderLabel.x = s.leftViewWidth + s.textInset + s.placeholderHorizinalOffset s.placeholderLabel.x = s.leftViewWidth + s.textInset + s.placeholderHorizontalOffset
case .right: 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 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