Open Neeraj204 opened 7 years ago
remove self.tableView.allowsMultipleSelection = true
this line so you dont have to double click on header item again.and for align this as a tree you just have to use two different cells for header item and items this is how i achieve that
if item as? SwiftyAccordionCells.HeaderItem != nil {
let cell = tableView.dequeueReusableCell(withIdentifier: kTableCellName, for: indexPath) as! SideMenuTableViewCell
...
return cell
}else{
let cell = tableView.dequeueReusableCell(withIdentifier: kTableChildCellName, for: indexPath) as! SideMenuChildItemTableViewCell
...
return cell
}
@kamalupasena That's not working, same result as before.
This is great library and fulfill my requirement but, I need subitems to be aligned like tree (see attached screenshot). And for exapnding cell why I have to double click on header items everytime? how can I expand it with single click?