BWTVController 0.1.6

BWTVController 0.1.6

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Apr 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by BumwooPark.



  • By
  • qkrqjadn

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, [email protected]

License

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