metodowhite / PhotoSlider

PhotoSlider can a simple photo slider and delete slider with swiping.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PhotoSlider for Swift 2

Carthage compatible

PhotoSlider can a simple photo slider and delete slider with swiping.

Installation

PhotoSlider is available through Carthage.

To install it, simply add the following line to your Cartfile:

github "metodowhite/PhotoSlider" "0.5.1"

Usage

func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) {

    var slider = PhotoSlider.ViewController(imageURLs: self.images)
    slider.modalPresentationStyle = .OverCurrentContext
    slider.modalTransitionStyle = UIModalTransitionStyle.CrossDissolve
    slider.index = indexPath.row
    self.presentViewController(slider, animated: true, completion: nil)

}

Requirements

Xcode 7 & Swift 2 is required.

Original Author

nakajijapan, pp.kupepo.gattyanmo@gmail.com

heavily modified to use Carthage, Kingfisher instead SDWebImage, and Swift 2.

License

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

About

PhotoSlider can a simple photo slider and delete slider with swiping.


Languages

Language:Swift 98.2%Language:Objective-C 1.8%