model keys Updated
This commit is contained in:
parent
e4dc439d1c
commit
c830c388de
@ -16,7 +16,7 @@ open class RadioBoxes: View {
|
||||
private let boxHeight: CGFloat = 64.0
|
||||
private let itemSpacing: CGFloat = 8.0
|
||||
private var numberOfColumns: CGFloat = 2.0
|
||||
private var radioBoxesmodel: RadioBoxesModel!
|
||||
private var radioBoxesModel: RadioBoxesModel!
|
||||
|
||||
|
||||
private var delegateObject: MVMCoreUIDelegateObject?
|
||||
@ -50,7 +50,7 @@ open class RadioBoxes: View {
|
||||
self.delegateObject = delegateObject
|
||||
|
||||
guard let radioBoxesModel = model as? RadioBoxesModel else { return }
|
||||
radioBoxesmodel = radioBoxesModel
|
||||
self.radioBoxesModel = radioBoxesModel
|
||||
boxes = radioBoxesModel.boxes
|
||||
FormValidator.setupValidation(for: radioBoxesModel, delegate: delegateObject?.formHolderDelegate)
|
||||
|
||||
@ -121,7 +121,7 @@ extension RadioBoxes: UICollectionViewDataSource {
|
||||
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "RadioBoxCollectionViewCell", for: indexPath) as? RadioBoxCollectionViewCell else {
|
||||
fatalError()
|
||||
}
|
||||
let additionalData: [AnyHashable : RadioBoxesModel] = ["radioboxesmodel":radioBoxesmodel]
|
||||
let additionalData: [AnyHashable : RadioBoxesModel] = ["radioboxesmodel":radioBoxesModel]
|
||||
cell.radioBox.isUserInteractionEnabled = false
|
||||
cell.set(with: molecule, delegateObject, additionalData)
|
||||
cell.updateView(size ?? collectionView.bounds.width)
|
||||
|
||||
@ -27,7 +27,7 @@ import Foundation
|
||||
private enum CodingKeys: String, CodingKey {
|
||||
case moleculeName
|
||||
case selectedAccentColor
|
||||
case backgroundColor
|
||||
case backgroundColor = "boxesColor"
|
||||
case boxes
|
||||
case fieldKey
|
||||
case groupName
|
||||
|
||||
Loading…
Reference in New Issue
Block a user