/BWTVController

Expanding TableViewCell

Primary LanguageShellMIT LicenseMIT

BWTVController

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

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

pod "BWTVController"

Start

BWTVController needs BWTVHeaderView array

self.headerViews = [BWTVHeaderView]()

and BWTVHeaderView need to expandState

let headerview = BWTVHeaderView()
headerview.expandState = .expand

or

headerview.expandState = .reduce

easy way to use the code is write bottom code

for _ in 1..<5{
    let headerview = BWTVHeaderView()
    headerview.expandState = .expand
    headerview.childRows = 2
    self.headerViews?.append(headerview)
}

and manipulate section height and heightForRow ex)

self.heightForRowAt = 100
self.heightForHeaderInSection = 50

if you don't want to display top section isTopSectionDisplay set false

Author

qkrqjadn, qjadn0914@naver.com

License

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