Ramotion / folding-cell

:octocat: 📃 FoldingCell is an expanding content cell with animation made by @Ramotion

Home Page:https://www.ramotion.com/folding-cell/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to expand all the cells at first time?

deepakrhtsdev opened this issue · comments

How to expand all the cells at first time?

You can do it by adding:

cellHeights[indexPath.row] = Const.openCellHeight
cell.unfold(true, animated: false, completion: nil)

into
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell