StretchyHeaderView 3.0.0

StretchyHeaderView 3.0.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Oct 2017
SwiftSwift Version 4.0
SPMSupports SPM

Maintained by sunlubo.



  • By
  • sunlubo

StretchyHeaderView

StretchyHeaderView

Usage

/// Scalable Cover
tableView.addScalableCover(with: UIImage(named: "FullSizeRender.jpg")!)


/// Change navigation bar's appearance dynamically.
navigationBar.barColor = UIColor(colorLiteralRed: 52 / 255, green: 152 / 255, blue: 219 / 255, alpha: 1)

override func viewWillAppear(animated: Bool) {
  super.viewWillAppear(animated)
  let navigationBar = navigationController!.navigationBar
  navigationBar.attachToScrollView(tableView)
}

override func viewWillDisappear(animated: Bool) {
  super.viewWillDisappear(animated)
  let navigationBar = navigationController!.navigationBar
  navigationBar.reset()
}

License

StretchyHeaderView is released under an Apache license. See LICENSE for more information.