-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Description
Describe the bug
SwitchRow Not responding to second time from user interaction
To Reproduce
Steps to reproduce the behavior:
- change switch value by clicking, code in the onChange function will be executed
- See error: code in the onChange function will not be executed when you change again switch value by clicking,
Expected behavior
execute the code statement in onChange function each time value change of the switch
Screenshots
SwitchRow(InteractionFormFieldsIds.followupCompletedShortcut.value) {
$0.title = "Follow Up Completed"
}.onChange({ row in
if let switchValue = row.cell.switchControl?.isOn {
if switchValue == true {
row.cell.switchControl.setOn(false, animated: true)
DispatchQueue.main.async {
self.tableView.reloadData { /* Complete reloading */ }
}
}
}
}
})Versions (please complete the following information):
- Device: iPad
- OS: iOS 16.0
- Eureka Version 5.2.1
- Xcode version 14.1
Reactions are currently unavailable