David Liu
David Liu
Hi @bbonetti, thanks for the question. For question 1, unfortunately, it's a bit weird but it's how `radio button` suppose to behave. For question 2, try use `selected` instead of...
`selected` is an `UIControl` property. Please refer to Apple's [doc](https://developer.apple.com/documentation/uikit/uicontrol/1618203-selected)
@bbonetti for swift the setter is `selected`, please refer to this [doc](https://developer.apple.com/documentation/uikit/uicontrol/1618203-selected). `isSelected` is the getter, not the setter, so setting it will not have any effect. @majeedyaseen @cdeakin
@axiom-media @lhbooker I just tested in Swift 4. By setting `isSelected` you will be able to programmatically set the selection state of a radio button.
@bbonetti @majeedyaseen for Swift 4, please use `isSelected` to set the `selected` property.
@axiom-media I didn't test in a UITableView. However, I don't think UITableView will make things different. Just updated `DLRadioButton` to `1.4.12` and added sample lines for setting selection state programmatically.
@cbnewham The inversion is only for multiple selectable buttons so that users can toggle a button. I moved the logic to `touchUpInside`.
Can you provide a code sample or screenshot? Thanks!
Thanks for reporting it. Will try to fix it in next version.
@BarakRL thx for submitting the bug. Do you know what's the actual impact of this bug?