removed view. renamed.
This commit is contained in:
parent
403f0b261b
commit
d4154ab0d2
@ -29,8 +29,6 @@ import UIKit
|
|||||||
public var formLabel: Label?
|
public var formLabel: Label?
|
||||||
public var separatorView: UIView?
|
public var separatorView: UIView?
|
||||||
public var placeholderErrorLabel: Label?
|
public var placeholderErrorLabel: Label?
|
||||||
public var view: UIView?
|
|
||||||
|
|
||||||
public var dashLine: DashLine?
|
public var dashLine: DashLine?
|
||||||
public var dropDownCarrotLabel: UILabel?
|
public var dropDownCarrotLabel: UILabel?
|
||||||
public weak var datePicker: UIDatePicker?
|
public weak var datePicker: UIDatePicker?
|
||||||
@ -152,11 +150,10 @@ import UIKit
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public var customEnabledTextColor: UIColor?
|
public var enabledTextColor: UIColor?
|
||||||
public var customDisabledTextColor: UIColor?
|
public var disabledTextColor: UIColor?
|
||||||
|
|
||||||
public var errMessage: String?
|
public var errMessage: String?
|
||||||
public var editCompleteAction: ((_ text: String?) -> ())?
|
|
||||||
|
|
||||||
private var borderPath: UIBezierPath?
|
private var borderPath: UIBezierPath?
|
||||||
private var calendar: Calendar?
|
private var calendar: Calendar?
|
||||||
@ -631,14 +628,14 @@ import UIKit
|
|||||||
self?.textField?.isEnabled = enable
|
self?.textField?.isEnabled = enable
|
||||||
|
|
||||||
if enable {
|
if enable {
|
||||||
self?.textField?.textColor = self?.customEnabledTextColor ?? .black
|
self?.textField?.textColor = self?.enabledTextColor ?? .black
|
||||||
self?.formLabel?.textColor = UIColor.mfBattleshipGrey()
|
self?.formLabel?.textColor = UIColor.mfBattleshipGrey()
|
||||||
self?.placeholderErrorLabel?.textColor = .black
|
self?.placeholderErrorLabel?.textColor = .black
|
||||||
self?.separatorView?.backgroundColor = (self?.errorShowing ?? false) ? UIColor.mfPumpkin() : .black
|
self?.separatorView?.backgroundColor = (self?.errorShowing ?? false) ? UIColor.mfPumpkin() : .black
|
||||||
self?.showDropDown(true)
|
self?.showDropDown(true)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
self?.textField?.textColor = self?.customDisabledTextColor ?? UIColor.mfSilver()
|
self?.textField?.textColor = self?.disabledTextColor ?? UIColor.mfSilver()
|
||||||
self?.formLabel?.textColor = UIColor.mfSilver()
|
self?.formLabel?.textColor = UIColor.mfSilver()
|
||||||
self?.placeholderErrorLabel?.textColor = UIColor.mfSilver()
|
self?.placeholderErrorLabel?.textColor = UIColor.mfSilver()
|
||||||
self?.showDropDown(false)
|
self?.showDropDown(false)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user