diff --git a/MVMCoreUI/BaseClasses/TextView.swift b/MVMCoreUI/BaseClasses/TextView.swift index 547de4a2..23117718 100644 --- a/MVMCoreUI/BaseClasses/TextView.swift +++ b/MVMCoreUI/BaseClasses/TextView.swift @@ -27,11 +27,13 @@ import UIKit /// Set to true to hide the blinking textField cursor. public var hideBlinkingCaret = false + /// Hides the custom drawn border. public var hideBorder = true - public var borderPath: UIBezierPath? + private var borderPath: UIBezierPath? - public var errorShowing = false + /// If true + public var hasError = false weak var bottomLine: SeparatorView? @@ -171,7 +173,7 @@ import UIKit var strokeColor: UIColor? - if errorShowing { + if hasError { strokeColor = .mvmOrangeAA bottomLine?.backgroundColor = .mvmOrangeAA } else { @@ -233,7 +235,7 @@ extension TextView: MVMCoreViewProtocol { translatesAutoresizingMaskIntoConstraints = false insetsLayoutMarginsFromSafeArea = false clipsToBounds = true - errorShowing = false + hasError = false hideBorder = false layer.cornerRadius = CGFloat(CornerRadiusLarge) // Disable SmartQuotes