This commit is contained in:
Kevin G Christiano 2019-11-13 09:23:58 -05:00
parent 926c2c4cf3
commit 87b0316d47

View File

@ -10,7 +10,7 @@ import UIKit
/** /**
* This class is intended to be subclassed by a class that will add views subclassed under UIControl. * This class is intended to be subclassed by a class that will add views subclassed under UIControl.
* The FieldEntryForm provides the base logic for the description label, placeholder/error label and field container. * The EntryForm provides the base logic for the description label, placeholder/error label and field container.
* *
* When subclassing, be sure to override setupFieldContainerContent(). In this method you will setup all the content bound to the field container. * When subclassing, be sure to override setupFieldContainerContent(). In this method you will setup all the content bound to the field container.
*/ */
@ -56,6 +56,7 @@ import UIKit
public var isValid = false public var isValid = false
public var fieldKey: String? public var fieldKey: String?
/// Toggles error or original UI.
public var showError = false { public var showError = false {
didSet { didSet {
entryContainer.showError = showError entryContainer.showError = showError
@ -64,7 +65,7 @@ import UIKit
public var errorMessage: String? public var errorMessage: String?
/// Toggles the enables state of this component. /// Toggles original or disabled UI.
public var isEnabled = true { public var isEnabled = true {
didSet { didSet {
DispatchQueue.main.async { [weak self] in DispatchQueue.main.async { [weak self] in
@ -78,6 +79,7 @@ import UIKit
} }
} }
// Toggles original or locked UI.
public var isLocked = false { public var isLocked = false {
didSet { didSet {
DispatchQueue.main.async { [weak self] in DispatchQueue.main.async { [weak self] in