/TreeTableView

Easiest usage of expandable & collapsible cell for iOS

Primary LanguageSwiftMIT LicenseMIT

TreeTableView

Version Carthage Compatible License: MIT Platform Swift 5.0 iOS 9.0+

Intoduction

Easiest usage of expandable & collapsible cell for iOS, written in Swift 5. Just provide UITableViewCell whatever you like and implement TreeTableViewDataSource and TreeTableViewDelegate protocols. TreeTableView is made because insertRows and deleteRows is hard to use.

demo

Usage

Basic

import TreeTableView

Make TreeTableView in Storyboard or in code

@IBOutlet private weak var treeTableView: TreeTableView!

Inherit TreeTableViewDataSource and TreeTableViewDelegate

class ViewController: UIViewController, TreeTableViewDataSource, TreeTableViewDelegate

Set dataSource and delegate

treeTableView.treeDataSource = self
treeTableView.treeDelegate = self

Implement required TreeTableViewDataSource and TreeTableViewDelegate methods. See demo project for more information.

Requirements

TreeTableView written in Swift 5.0. Compatible with iOS 9.0+

Installation

Cocoapods

TreeTableView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'TreeTableView'

Carthage

github "AntonLisovoy/TreeTableView"

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Author

Anton Lisovoy

License

TreeTableView is available under the MIT license. See the LICENSE.md file for more info.