diff --git a/VDS/Components/TextFields/EntryFieldBase.swift b/VDS/Components/TextFields/EntryFieldBase.swift index 7389cf79..5f74e2f7 100644 --- a/VDS/Components/TextFields/EntryFieldBase.swift +++ b/VDS/Components/TextFields/EntryFieldBase.swift @@ -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) } diff --git a/VDS/Protocols/FormFieldable.swift b/VDS/Protocols/FormFieldable.swift index 9acc3e5a..be7ce3ba 100644 --- a/VDS/Protocols/FormFieldable.swift +++ b/VDS/Protocols/FormFieldable.swift @@ -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.