fixed per comments

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-08-21 14:21:17 -05:00
parent ef08aa043e
commit 458f303972
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ import Foundation
import MVMCore
import VDS
@objcMembers public class CheckboxesModel: MoleculeModelProtocol {
public class CheckboxesModel: MoleculeModelProtocol {
//--------------------------------------------------
// MARK: - Properties
//--------------------------------------------------

View File

@ -10,7 +10,7 @@ import Foundation
import MVMCore
import VDS
@objcMembers public class RadioButtonsModel: FormFieldModel {
public class RadioButtonsModel: FormFieldModel {
//--------------------------------------------------
// MARK: - Properties
//--------------------------------------------------
@ -23,7 +23,7 @@ import VDS
// MARK: - Form Validation
//--------------------------------------------------
/// Returns the fieldValue of the selected box, otherwise the text of the selected box.
/// Returns the fieldValue of the selected RadioButton.
public override func formFieldValue() -> AnyHashable? {
guard enabled else { return nil }
let selectedBox = radioButtons.first { $0.radioButton.state }