rahul0x24 / RKParallaxEffect

RKParallaxEffect is written in swift and provides API to create a parallax effect on UITableHeaderView with Full Screen option.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RKParallaxEffect

Travis Version License Platform

Preview

Requirements

  • iOS 8.0+
  • Xcode 8.0+

Installation

CocoaPods

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

use_frameworks!
pod "RKParallaxEffect", ~> '2.0'

Carthage

github "RahulKatariya/RKParallaxEffect" ~> 2.0

Usage

import RKParallaxEffect

class TableViewController: UITableViewController {

    var parallaxEffect: RKParallaxEffect!

    override func viewDidLoad() {
        super.viewDidLoad()
        parallaxEffect = RKParallaxEffect(tableView: tableView)
    }

    override func viewDidAppear(animated: Bool) {
        super.viewDidAppear(animated)
        parallaxEffect.isParallaxEffectEnabled = true
        parallaxEffect.isFullScreenTapGestureRecognizerEnabled = true
        parallaxEffect.isFullScreenPanGestureRecognizerEnabled = true
    }

}

Author

Rahul Katariya, rahulkatariya@me.com

License

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

About

RKParallaxEffect is written in swift and provides API to create a parallax effect on UITableHeaderView with Full Screen option.

License:MIT License


Languages

Language:Swift 90.8%Language:Ruby 5.4%Language:Objective-C 3.8%