A simple view to create a scrollable gallery of images
Objective-C Ruby
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Example
SimpleImageSlider
.gitignore
.travis.yml
LICENSE
README.md
SimpleImageSlider.podspec
_Pods.xcodeproj
sample.gif
url_1.jpg
url_2.jpg
url_3.jpg
url_4.jpg
url_5.jpg

README.md

SimpleImageSlider

Version License Platform

Example

Sample

To run the example project, clone the repo, and run pod install from the Example directory first.

Usage

SimpleImageSlider can be initialized with an array of NSURL objects that point to images, or with an array of UIImage objects. These will populate the ImageSlider. Check out the examples to see how to instantiate a SimpleImageSlider with images, urls, in code, and via Interface Builder.

Parallax

To enable the parallax ('stretchy header') feature, call - (void)addParallaxToScrollView:(nonnull UIScrollView *)scrollView passing the scrollview (or subclass, such as UICollectionView or UITableView) to which you want to add the SimpleImageSlider. You must also call - (void)scrollViewScrolled:(nonnull UIScrollView *)scrollView on the SimpleImageSlider as the scrollview scrolls, to update the parallax effect; pass the scrollview from the - (void)scrollViewDidScroll(UIScrollview *)scrollView scrollview delegate method into the above method on the SimpleImageSlider. See the example for more details.

Requirements

Installation

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

pod 'SimpleImageSlider'

Author

Christian Hatch, christianhatch@gmail.com

License

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