To run the example project, clone the repo, and run
pod install from the Example directory first.
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.
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.
SimpleImageSlider is available through CocoaPods. To install it, simply add the following line to your Podfile:
Christian Hatch, firstname.lastname@example.org
ImageSlider is available under the MIT license. See the LICENSE file for more info.