need groupName

This commit is contained in:
Suresh, Kamlesh 2020-04-09 15:56:00 -04:00
parent a5d5df6ceb
commit 5715d7eb23

View File

@ -18,6 +18,8 @@ import UIKit
public func set(_ radioButtonModel: RadioButtonModel, _ radioButton: RadioButton) {
self.fieldKey = radioButtonModel.fieldKey
self.groupName = radioButtonModel.groupName
if radioButtonModel.state {
if self.baseValue == nil,
let selected = radioButtonModel.baseValue as? Bool, selected {
@ -56,7 +58,7 @@ import UIKit
}
// MARK: - FormValidationFormFieldProtocol
extension RadioButtonSelectionHelper {
extension RadioButtonSelectionHelper {
public func formFieldValue() -> AnyHashable? {
return selectedRadioButtonModel?.fieldValue
}