Post not yet marked as solved
Post marked as unsolved with 0 replies, 493 views
Hello, tell me how you can fix this behavior in xcode 13, updating the cell height does not work. In xcode 12.5.1 works fine
https://www.icloud.com/iclouddrive/0Wq4Ml4Zl_0Hk4XcQxrQ3FIwg#TableView
override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
if isHideCell && indexPath.row == 1 {
return 0
} else {
return tableView.rowHeight
}
}
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
guard indexPath.row == 0 else { return }
isHideCell = !isHideCell
tableView.performBatchUpdates(nil)
// tableView.beginUpdates()
// tableView.endUpdates()
// tableView.reconfigureRows(at: [IndexPath(row: 1, section: 0)])
tableView.deselectRow(at: indexPath, animated: true)
}