Closed pouriaalmassi closed 7 years ago
Could you try with the current master version? It should work in Xcode 8.3.
Also I would try setting row.hidden in viewWillAppear
and then reloading the table (if necessary)
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
let yRow = ...
yRow.hidden = Condition(booleanLiteral: !self.isPasscodeSet)
yRow.evaluateHidden()
tableView?.reloadData()
}
I would definitely not call beginUpdates
and endUpdates
inside cellUpdate
Closing this due to lack of response
Eureka: Currently using a fork that allows compilation under Xcode 8.3 / Swift 3.1
Xcode: 8.3
iOS: 10.3
In case of reporting errors, provide Xcode console output of stack trace or code compilation error.
Any other additional detail such as your eureka form/section/row code that you think it would be useful to understand and solve the problem.
I am trying to evaluate the hidden property of a SwitchRow cell after dismissing a modally presented view controller. Upon first presentation of the view controller that contains the SwitchRow cell the cell is hidden.
The scenario I'm attempting to create is as follows:
Attempted Solutions
tableView?.reloadData()
inviewWillAppear(_ :)
which does result in calling thecellUpdate
closure. However, settingrow.hidden
withincellUpdate
results in a tableview internal inconsistency exception (stack trace below).viewWillAppear(_ :)
but this just re-adds the form upon each presentation.Ideally I'd like to evaluate any hidden values within
viewWillAppear(_ :)
Current implementation.
Suggestions?