From 3f69b19a0556f0b8f0b02b326e5e8372e9507178 Mon Sep 17 00:00:00 2001 From: Kevin G Christiano Date: Fri, 3 Apr 2020 13:29:11 -0400 Subject: [PATCH] small change --- MVMCoreUI/BaseClasses/TextView.swift | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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