Added remove to form validator

This commit is contained in:
Chintakrinda, Arun Kumar (Arun) 2020-07-14 15:08:03 +05:30
parent adb4ac1893
commit fbd198a2be

View File

@ -46,6 +46,13 @@ import MVMCore
groupWatchers.append(action)
}
/// Removes the form field to the validator.
public func remove(_ field: FormFieldProtocol) {
if let fieldKey = field.fieldKey {
fields.removeValue(forKey: fieldKey)
}
}
/// Determines the type of item and adds it.
private func insert(_ item: FormItemProtocol) {
if let item = item as? FormFieldProtocol {