small change
This commit is contained in:
parent
45b4b0d594
commit
3f69b19a05
@ -27,11 +27,13 @@ import UIKit
|
|||||||
/// Set to true to hide the blinking textField cursor.
|
/// Set to true to hide the blinking textField cursor.
|
||||||
public var hideBlinkingCaret = false
|
public var hideBlinkingCaret = false
|
||||||
|
|
||||||
|
/// Hides the custom drawn border.
|
||||||
public var hideBorder = true
|
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?
|
weak var bottomLine: SeparatorView?
|
||||||
|
|
||||||
@ -171,7 +173,7 @@ import UIKit
|
|||||||
|
|
||||||
var strokeColor: UIColor?
|
var strokeColor: UIColor?
|
||||||
|
|
||||||
if errorShowing {
|
if hasError {
|
||||||
strokeColor = .mvmOrangeAA
|
strokeColor = .mvmOrangeAA
|
||||||
bottomLine?.backgroundColor = .mvmOrangeAA
|
bottomLine?.backgroundColor = .mvmOrangeAA
|
||||||
} else {
|
} else {
|
||||||
@ -233,7 +235,7 @@ extension TextView: MVMCoreViewProtocol {
|
|||||||
translatesAutoresizingMaskIntoConstraints = false
|
translatesAutoresizingMaskIntoConstraints = false
|
||||||
insetsLayoutMarginsFromSafeArea = false
|
insetsLayoutMarginsFromSafeArea = false
|
||||||
clipsToBounds = true
|
clipsToBounds = true
|
||||||
errorShowing = false
|
hasError = false
|
||||||
hideBorder = false
|
hideBorder = false
|
||||||
layer.cornerRadius = CGFloat(CornerRadiusLarge)
|
layer.cornerRadius = CGFloat(CornerRadiusLarge)
|
||||||
// Disable SmartQuotes
|
// Disable SmartQuotes
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user