From d4154ab0d26a0815d417b2441b36873e5c30ed76 Mon Sep 17 00:00:00 2001 From: Kevin G Christiano Date: Mon, 14 Oct 2019 15:31:28 -0400 Subject: [PATCH] removed view. renamed. --- MVMCoreUI/Atoms/TextFields/TextField.swift | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/MVMCoreUI/Atoms/TextFields/TextField.swift b/MVMCoreUI/Atoms/TextFields/TextField.swift index fb4867bf..66a3ab4a 100644 --- a/MVMCoreUI/Atoms/TextFields/TextField.swift +++ b/MVMCoreUI/Atoms/TextFields/TextField.swift @@ -29,8 +29,6 @@ import UIKit public var formLabel: Label? public var separatorView: UIView? public var placeholderErrorLabel: Label? - public var view: UIView? - public var dashLine: DashLine? public var dropDownCarrotLabel: UILabel? public weak var datePicker: UIDatePicker? @@ -152,11 +150,10 @@ import UIKit } } - public var customEnabledTextColor: UIColor? - public var customDisabledTextColor: UIColor? + public var enabledTextColor: UIColor? + public var disabledTextColor: UIColor? public var errMessage: String? - public var editCompleteAction: ((_ text: String?) -> ())? private var borderPath: UIBezierPath? private var calendar: Calendar? @@ -631,14 +628,14 @@ import UIKit self?.textField?.isEnabled = enable if enable { - self?.textField?.textColor = self?.customEnabledTextColor ?? .black + self?.textField?.textColor = self?.enabledTextColor ?? .black self?.formLabel?.textColor = UIColor.mfBattleshipGrey() self?.placeholderErrorLabel?.textColor = .black self?.separatorView?.backgroundColor = (self?.errorShowing ?? false) ? UIColor.mfPumpkin() : .black self?.showDropDown(true) } else { - self?.textField?.textColor = self?.customDisabledTextColor ?? UIColor.mfSilver() + self?.textField?.textColor = self?.disabledTextColor ?? UIColor.mfSilver() self?.formLabel?.textColor = UIColor.mfSilver() self?.placeholderErrorLabel?.textColor = UIColor.mfSilver() self?.showDropDown(false)