Swiftpack.co - Taimee/ImageViewer as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by Taimee.
Taimee/ImageViewer 0.2.6
Simple image viewer for iOS app
⭐️ 13
🕓 3 weeks ago
iOS
.package(url: "https://github.com/Taimee/ImageViewer.git", from: "0.2.6")

ImageViewer

MIT License

Timee ImageViewer is a lightweight image viewer framework for iOS app.

  • ☑ Pagenated image slideshow
  • ☑ Double-tap to zoom
  • ☐ Interactive dismissing feature is coming soon...

This ImageViewer does NOT depend on other libraries, and you need to choose your favorite image downloading library like Kingfisher.

Demo

Zoom Pagenation

Usage

// ViewController

let imageURLs: [URL] = [ some url array ... ]
let vc = ImageViewerController.init(imageURLs: imageURLs)
present(vc, animated: true)

// Delegate for asynchronous image downloading
extension ViewController: ImageViewerControllerDelegate {
    func load(_ imageURL: URL, into imageView: UIImageView, completion: (() -> Void)?) {
        imageView.setImage(with: imageURL) { _ in
            completion?()
        }
    }
}

Installation

Swift Package Manager

  • File > Swift Packages > Add Package Dependency
  • Add https://github.com/Taimee/ImageViewer.git
  • Select "Up to Next Major" with "0.2.0"

Committers

License

Copyright 2020 Timee, Inc.

Licensed under the MIT License.

GitHub

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

Release Notes

0.2.6
3 weeks ago

What's Changed

New Contributors

Full Changelog: https://github.com/Taimee/ImageViewer/compare/0.2.5...0.2.6

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