Skip to content
main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

A simple view to create a scrollable gallery of images

Resources

License

Packages

No packages published