Skip to content

michaelbabiy/RMParallax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

The way to impress users on the first app launch.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages