small change

This commit is contained in:
Kevin G Christiano 2020-04-03 13:29:11 -04:00
parent 45b4b0d594
commit 3f69b19a05

View File

@ -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