Standard component to implement accordion view of a structured data?

Is there a standard way to implement a collapsible accordion view?

[Label Level1]
[Labe Level2] (tapped)
item1 on level2
item2 on level2
[Label Level3]
[Label level4]

Hi @wieringa

Unfortunately, there is no a build-in solution in the standard UITableView/UICollectionView.
You could implement this feature yourself or you could use a 3d-party solutions. Here are some of them: GitHub - fuzz-productions/FZAccordionTableView: FZAccordionTableView transforms your regular UITableView into an accordion table view., GitHub - Vkt0r/AccordionSwift: The best way of implement an accordion menu using an UITableView in Swift, GitHub - justinmfischer/SwiftyAccordionCells: Example Swift 3.0 Xcode 8.0 project which demonstrates how to expand and collapse a UITableView like an accordion. Using this lightweight data structure approach, UITableViewCell header/sub-item rows can be added or removed dynamically as needed. Subclass table for further reuse..

Hope this helps.