Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 1.9 KB

README.md

File metadata and controls

56 lines (40 loc) · 1.9 KB

RMParallax

Build Status Swift 3 Platforms Twitter

RMParallax is a library designed to help you introduce the features of your app on the first app launch. See it in action.

Requirements

  • iOS 9.0+
  • Xcode 8.0+
  • Swift 3.0+

Installation

  • Add RMParallax folder containing RMController.swift, RMItem.swift, RMStyle.swift to your project
  • There is no step two

Usage

RMParallax is simple to use. All you have to do is create RMItem:

let item1 = RMItem(image: UIImage(named: "item1")!, text: "SHARE LIGHTBOXES WITH YOUR TEAM")
let item2 = RMItem(image: UIImage(named: "item2")!, text: "FOLLOW WORLD CLASS PHOTOGRAPHERS")
let item3 = RMItem(image: UIImage(named: "item3")!, text: "EXPLORE OUR COLLECTION BY CATEGORY")
let items = [item1, item2, item3]

Create RMParallax controller with items you created earlier:

let introducing = RMController(with: items)
introducing.dismiss = {
	introducing.view.removeFromSuperview()
	introducing.removeFromParentViewController()
}

Add your RMParallax controller to the view controller:

addChildViewController(introducing)
view.addSubview(introducing.view)
introducing.didMove(toParentViewController: self)

RMParallax uses closures to notify presenting view controller when the user is done paging through.

Please checkout included sample project.

Creators