gringoireDM / LNZTreeView

A swift TreeView
MIT License
236 stars 47 forks source link

How to expand node programmatically? #19

Open Pirokar opened 5 years ago

Pirokar commented 5 years ago

I need to show this view as expanded with custom node/level show. How can I do it?

jmanalang3 commented 5 years ago

same with me. ff

jmanalang3 commented 5 years ago

@gringoireDM How can I expand my node on first load?

jmanalang3 commented 5 years ago

What i did is here it worked for me.

value.forEach { self.treeView.select(node: $0, inSection: 0) let children = $0.children children?.forEach { self.treeView.select(node: $0, inSection: 0) } }