diff --git a/MVMCoreUI/Atomic/Atoms/Selectors/RadioBoxes.swift b/MVMCoreUI/Atomic/Atoms/Selectors/RadioBoxes.swift index 79a3e6e0..c0f001e7 100644 --- a/MVMCoreUI/Atomic/Atoms/Selectors/RadioBoxes.swift +++ b/MVMCoreUI/Atomic/Atoms/Selectors/RadioBoxes.swift @@ -9,7 +9,7 @@ import Foundation public protocol RadioBoxSelectionDelegate: class { - func selectedRadioBox(text: String) + func selected(radioBox: RadioBoxModel) } open class RadioBoxes: View { @@ -167,7 +167,7 @@ extension RadioBoxes: UICollectionViewDelegate { _ = FormValidator.validate(delegate: delegateObject?.formHolderDelegate) cell.updateAccessibility() guard let radioBox = boxes?[indexPath.row] else { return } - radioDelegate?.selectedRadioBox(text: radioBox.text) + radioDelegate?.selected(radioBox: radioBox) } open func collectionView(_ collectionView: UICollectionView, didDeselectItemAt indexPath: IndexPath) {