hide the validator

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-03-05 14:45:19 -06:00
parent d847bc3859
commit d459d5f933
2 changed files with 1 additions and 3 deletions

View File

@ -154,7 +154,7 @@ open class EntryFieldBase: Control, Changeable, FormFieldValidatable {
open var showError: Bool = false { didSet { setNeedsUpdate() } }
/// FormFieldValidator
open var validator: (any FormFieldValidatorable)?
internal var validator: (any FormFieldValidatorable)?
/// Whether or not to show the internal error
open var hasInternalError: Bool { !(validator?.isValid ?? true) }

View File

@ -24,8 +24,6 @@ public protocol FormFieldValidatable: FormFieldable {
var hasInternalError: Bool { get }
/// Internal Error Message that will show.
var internalErrorText: String? { get }
/// Validator that will run the Field Validation
var validator: (any FormFieldValidatorable)? { get set }
}
/// Struct that will execute the validation.