PhotoSlider can a simple photo slider and delete slider with swiping.
PhotoSlider is available through Carthage.
To install it, simply add the following line to your Cartfile:
github "metodowhite/PhotoSlider" "0.5.1"
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)
}
Xcode 7 & Swift 2 is required.
nakajijapan, [email protected]
heavily modified to use Carthage, Kingfisher instead SDWebImage, and Swift 2.
PhotoSlider is available under the MIT license. See the LICENSE file for more info.