Latest 5.1.1
Homepage https://github.com/MailOnline/ImageViewer
License MIT
Platforms ios 8.0

CI Status
Swift 3.1
Carthage compatible
Version
Platforms iOS
License MIT

Single image view

Gallery

For the latest changes see the CHANGELOG

Install

CocoaPods

pod 'ImageViewer'

Carthage

github "MailOnline/ImageViewer"

Sample Usage

For a detailed example, see the Example!

// Show the ImageViewer with the first item
self.presentImageGallery(GalleryViewController(startIndex: 0, itemsDataSource: self))

// The GalleryItemsDataSource provides the items to show
extension ViewController: GalleryItemsDataSource {
    func itemCount() -> Int {
        return items.count
    }

    func provideGalleryItem(_ index: Int) -> GalleryItem {
        return items[index].galleryItem
    }
}

ImageViewer version vs Swift version.

ImageViewer 5.0+ is Swift 4 ready! 🎉

If you use earlier version of Swift – refer to the table below:

Swift version ImageViewer version
4.x >= 5.0
3.x 4.0
2.3 3.1 ⚠️
2.2 <= 2.1

License

ImageViewer is licensed under the MIT License, Version 2.0. See the LICENSE file for more info.

Copyright (c) 2016 MailOnline

Latest podspec

{
    "name": "JBDImageViewer",
    "version": "5.1.1",
    "summary": "An image viewer u00e0 la Twitter",
    "description": "ImageViewer is a library that enables a user to visualize an image in fullscreen. Besides the typical pinch and double tap to zoom, we also provide a vertical swipe to dismiss. Finally, we try to mimic the displacement of the image from its current container into fullscreen, this feature being its main selling point. We also offer an amazing Gallery, so you can swipe between images.",
    "homepage": "https://github.com/MailOnline/ImageViewer",
    "license": "MIT",
    "authors": "MailOnline",
    "social_media_url": "https://twitter.com/MailOnline",
    "source": {
        "git": "https://github.com/jbdujardin/JBDImageViewer.git",
        "tag": "5.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "ImageViewer/Source/**/*"
}

Pin It on Pinterest

Share This