neoneye / SwiftyFORM

iOS framework for creating forms
MIT License
1.07k stars 87 forks source link

How to you get the value for a OptionPickerFormItem? #57

Closed justdan0227 closed 3 years ago

justdan0227 commented 3 years ago

I can use the .value on all my lazy var's for entryfields. How do I get the selected item from an OptionPickerFormItem ?

justdan0227 commented 3 years ago

Ok figured that one out as well

let selectedOptionStringValue  = optionItem.selected!.identifier
 flag  = (selectedOptionStringValue == "1") ? true : false