This commit is contained in:
Suresh, Kamlesh 2020-04-08 11:16:41 -04:00
parent 646dfd6a10
commit d66da2d2b8
2 changed files with 2 additions and 3 deletions

View File

@ -134,9 +134,6 @@ import UIKit
self.delegateObject = delegateObject
isSelected = model.state
if model.state {
print("log")
}
RadioButtonSelectionHelper.setupForRadioButtonGroup(model, self, delegateObject: delegateObject)
}

View File

@ -47,6 +47,7 @@ open class RadioButtonModel: MoleculeModelProtocol, FormFieldProtocol {
public init(_ state: Bool) {
self.state = state
baseValue = state
}
//--------------------------------------------------
@ -74,6 +75,7 @@ open class RadioButtonModel: MoleculeModelProtocol, FormFieldProtocol {
backgroundColor = try typeContainer.decodeIfPresent(Color.self, forKey: .backgroundColor)
baseValue = state
fieldKey = try typeContainer.decodeIfPresent(String.self, forKey: .fieldKey)
if let groupName = try typeContainer.decodeIfPresent(String.self, forKey: .groupName) {
self.groupName = groupName