SimpleImageSlider 3.1.0

SimpleImageSlider 3.1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Sep 2022

Maintained by Christian Hatch.



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, [email protected]

License

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