M13Checkbox
M13Checkbox copied to clipboard
Listening for Value Changes
In the example code, you guys use an IBOutlet to listen for any value changes in the checkbox. However, there doesn't seem to be an alternative to listen for value changes through code (creating checkbox through code).
Try to create a target for an eventUIControlEvents.valueChanged
programmatically.
Here is an example:
checkbox.addTarget(self, action: #selector(checkboxValueChanged(_:)), for: .valueChanged)
This would be great to add to the Project summary.