- iOS 8.0+
- Xcode 8.0+
RKParallaxEffect is available through CocoaPods. To install it, simply add the following line to your Podfile:
use_frameworks!
pod "RKParallaxEffect", ~> '2.0'
github "RahulKatariya/RKParallaxEffect" ~> 2.0
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
}
}
Rahul Katariya, rahulkatariya@me.com
RKParallaxEffect is available under the MIT license. See the LICENSE file for more info.