default background color

This commit is contained in:
Pfeil, Scott Robert 2019-10-23 11:38:15 -04:00
parent 0b364fa004
commit 0cc81c3255

View File

@ -64,6 +64,7 @@ import UIKit
isSelected = !isSelected
}
FormValidator.enableByValidationWith(delegate: delegateObject?.formValidationProtocol)
setNeedsDisplay()
}
public func isValidField() -> Bool {
@ -85,7 +86,7 @@ import UIKit
// MARK: - MVMViewProtocol
open override func setupView() {
super.setupView()
backgroundColor = .white
clipsToBounds = true
widthConstraint = widthAnchor.constraint(equalToConstant: 30)
widthConstraint?.isActive = true
@ -126,4 +127,9 @@ extension RadioButton {
formValidator: delegateObject?.formValidationProtocol?.formValidatorModel?())
FormValidator.setupValidation(molecule: radioButtonModel, delegate: delegateObject?.formValidationProtocol)
}
public override func reset() {
super.reset()
backgroundColor = .white
}
}