//
//  FormGroupWatcherFieldProtocol.swift
//  MVMCoreUI
//
//  Created by Suresh, Kamlesh on 1/31/20.
//  Copyright © 2020 Verizon Wireless. All rights reserved.
//
//  Fields that want to be informed of group validity.

import Foundation

public protocol FormGroupWatcherFieldProtocol: FormItemProtocol, UIUpdatableModelProtocol {}

public extension FormGroupWatcherFieldProtocol {
    func setValidity(_ valid: Bool){
        self.enabled = valid;
        updateUI?()
    }
}
