Latest 0.1.1
Homepage https://github.com/5sw/SWParallaxScrollView
License MIT
Platforms ios 5.0, requires ARC
Authors

A UIScrollView subclass with multiple layers and a parallax effect.

Build Status

Install

To use just add SWParallaxScrollView.h and SWParallaxScrollView.mm to your project or install via CocoaPods.

Add a pod entry to your Podfile:

pod 'SWParallaxScrollView', '~> 0.1.1'

Install the pod(s) by running:

pod install

Usage

Instantiate and configure SWParallaxScrollView like a regular UIScrollView. When adding subviews they get added on layer 0 by
default and everything behaves like a regular scroll view. Subviews can also be added to a given layer:

[parallaxScrollView addSubview: someView onLayer: layer]

If the layer is less than zero those subviews will scroll slower than the regular scroll view. And if the layer is greater than
0 the subviews will scroll faster.

Demo

To run the demo open ParallaxScrollView.xcodeproj and run.

The graphics in the demo app are taken from Wikipedia user OhSqueezy. (Background, Middle Layer, Foreground)

Latest podspec

{
    "name": "SWParallaxScrollView",
    "version": "0.1.1",
    "summary": "A UIScrollView subclass with multiple layers and a parallax effect.",
    "description": "  tttttA UIScrollView subclass that supports multiple layers with parallax scrolling. Layers can either scrollntttttslower or faster than the default scroll view. Layers with a negative value scroll slower while layers withnttttta positive number scroll faster. Layer 0 has no speed adjustments.n",
    "homepage": "https://github.com/5sw/SWParallaxScrollView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Sven Weidauer": "[email protected]"
    },
    "social_media_url": "http://twitter.com/5sw_de",
    "platforms": {
        "ios": "5.0"
    },
    "source": {
        "git": "https://github.com/5sw/SWParallaxScrollView.git",
        "tag": "0.1.1"
    },
    "source_files": [
        "Classes",
        "Classes/*.{h,m}"
    ],
    "public_header_files": "Classes/*.h",
    "requires_arc": true,
    "libraries": "c++",
    "xcconfig": {
        "CLANG_CXX_LANGUAGE_STANDARD": "c++11",
        "CLANG_CXX_LIBRARY": "libc++"
    }
}

Pin It on Pinterest

Share This