Swiftpack.co - Krisiacik/ImageViewer as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by Krisiacik.
Krisiacik/ImageViewer 6.0.0
An image viewer à la Twitter
⭐️ 2,510
🕓 2 years ago
.package(url: "https://github.com/Krisiacik/ImageViewer.git", from: "6.0.0")

CI Status Swift 5.0 Carthage compatible Version Platforms iOS License MIT

Single image view

Gallery

For the latest changes see the CHANGELOG

Install

CocoaPods

pod 'ImageViewer'

Carthage

github "Krisiacik/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 6.0+ is Swift 5 ready! 🎉

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

Swift version ImageViewer version
5.x >= 6.0
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

GitHub

link
Stars: 2510
Last commit: 15 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

Swift 5 support 🚀
4 years ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics