Latest 2.0.0
Homepage https://github.com/sunlubo/StretchyHeaderView
License MIT
Platforms ios 8.0
Authors

StretchyHeaderView

Installation

CocoaPods

Just add pod 'StretchyHeaderView' to your Podfile and go!

In any file you’d like to use StretchyHeaderView in, don’t forget to
import the framework with import StretchyHeaderView.

Then run pod install or pod update.

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.

Latest podspec

{
    "name": "StretchyHeaderView",
    "version": "2.0.0",
    "summary": "A generic stretchy header for UIScrollView, and allows you to change navigation bar's appearance dynamically.",
    "homepage": "https://github.com/sunlubo/StretchyHeaderView",
    "license": {
        "type": "MIT",
        "file": "License"
    },
    "authors": {
        "sunlubo": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/sunlubo/StretchyHeaderView.git",
        "tag": "2.0.0"
    },
    "source_files": "StretchyHeaderView/Classes/*.swift",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This