Commit 62aeba0d by M. Porooshani

Fixed ErrorTextField indenting

parent 4a5d39bf
...@@ -31,27 +31,27 @@ ...@@ -31,27 +31,27 @@
import UIKit import UIKit
public class ErrorTextField: TextField { public class ErrorTextField: TextField {
/// Controls the visibility of detailLabel /// Controls the visibility of detailLabel
@IBInspectable public var revealError: Bool = false { @IBInspectable public var revealError: Bool = false {
didSet { didSet {
detailLabel.hidden = !revealError detailLabel.hidden = !revealError
} }
} }
/** /**
Prepares the view instance when intialized. When subclassing, Prepares the view instance when intialized. When subclassing,
it is recommended to override the prepareView method it is recommended to override the prepareView method
to initialize property values and other setup operations. to initialize property values and other setup operations.
The super.prepareView method should always be called immediately The super.prepareView method should always be called immediately
when subclassing. when subclassing.
*/ */
override public func prepareView() { override public func prepareView() {
super.prepareView() super.prepareView()
detailLabel.hidden = true detailLabel.hidden = true
detailColor = MaterialColor.red.base detailColor = MaterialColor.red.base
} }
} }
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