UIOutlineView is an iOS analogue for NSOutlineView class available for macOS
UIOutlineView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "UIOutlineView"
Don't forget to add import:
import UIOutlineView
As for UITableView you should register cells you will use in OutlineView:
outlineView.register(YourCell.self, forCellReuseIdentifier: "cell")
UIOutlineView is filled with data from UIOutlineViewDataSource and events handling is performed by UIOutlineViewDelegate. Protocols are almost similar to NSOutlineView's DataSource and Delegate:
outlineView.outline_delegate = self
outlineView.outline_dataSource = self
VihlayewAlex, vihlayew.alex@gmail.com
UIOutlineView is available under the MIT license. See the LICENSE file for more info.