CocoaPods trunk is moving to be read-only. Read more on the blog, there are 9 months to go.
| TestsTested | ✗ |
| LangLanguage | SwiftSwift |
| License | MIT |
| ReleasedLast Release | Mar 2016 |
| SPMSupports SPM | ✗ |
Maintained by Connor Hailey.
To run the example project, clone the repo, and run pod install from the Example directory first.
CHImageScroller requires only 4 lines of code to implement:
The first line should be an array of images that you want presented
let images = NSArray(objects: UIImage(named: "barca")!, UIImage(named: "bayern")!, UIImage(named: "united")!)The second line initializes the scroller with the array of images and the desired frame (should be full screen)
let imageScroller = CHImageScroller(images: images, frame: CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height))In the third, you add the imageScroller as a subview of your current view controller’s view’
self.view.addSubview(imageScroller)In the fourth, you present the imageScroller
imageScroller.presentImagePreview()CHImageScroller is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "CHImageScroller"Connor Hailey, [email protected]
CHImageScroller is available under the MIT license. See the LICENSE file for more info.