Skip to content

Stretchy header for UIScrollView, UITableView and UICollectionView

License

Notifications You must be signed in to change notification settings

osmanyildirim/OYStretchyHeader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OYStretchyHeader

Installation

CocoaPods

Just add pod 'OYStretchyHeader' to your Podfile then run pod install or pod update.

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

Manually

Download and drop OYStretchyHeader.swift in your project.

Usage

   OYStretchyHeader().init(viewController: self,
                                      parentView: scrollView,
                                      customHeader: nil,
                                      image: UIImage(named: "sample"),
                                      height: 200,
                                      type: .afterShowNavigationBar)

you can select one of the types

public enum HeaderType {
  case afterShowNavigationBar
  case alwaysHideNavigationBar
  case alwaysShowNavigationBar
}

License

OYStretchyHeader is released under an MIT license. See LICENSE for more information.

About

Stretchy header for UIScrollView, UITableView and UICollectionView

Resources

License

Stars

Watchers

Forks

Packages

No packages published