Swiftpack.co -  Taimee/ImageViewer as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Taimee/ImageViewer
Simple image viewer for iOS app
.package(url: "https://github.com/Taimee/ImageViewer.git", from: "0.2.3")

ImageViewer

Carthage compatible 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

Carthage

github "Taimee/ImageViewer"

Then run carthage update.

Follow the current instructions in Carthage's README for up to date installation instructions.

Committers

License

Copyright 2020 Timee, Inc.

Licensed under the MIT License.

GitHub

link
Stars: 2
Last commit: 3 days ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

0.2.3
3 days ago
  • change deployment target to 13.0
  • fix; dismiss button does not appear

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