I am using Eureka form in my iOS app. I want to clear / reload form by pressing the button. How it should be done?
I tried this code with no luck
for row in self!.form.allRows {
row.reload()
row.updateCell()
}
self!.tableView.reloadData()
I know that there is way to provide default values for all fields but I don't want to specify all fields values - just want to find universal way to refresh / clean form.
Here is the function I use to clear my form
for row in form.allRows {
row.baseValue = nil
}
tableView.reloadData()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With