Skip to content

VihlayewAlex/UIOutlineView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Icon

UIOutlineView

UIOutlineView is an iOS analogue for NSOutlineView class available for macOS

Installation

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

pod "UIOutlineView"

Usage

Import

Don't forget to add import:

import UIOutlineView

Register cells

As for UITableView you should register cells you will use in OutlineView:

outlineView.register(YourCell.self, forCellReuseIdentifier: "cell")

DataSource and Delegate

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

Author

VihlayewAlex, vihlayew.alex@gmail.com

License

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