Skip to content

takeshi-akutsu/ImageViewer

 
 

Repository files navigation

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

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.

About

Simple image viewer for iOS app

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Swift 96.2%
  • Objective-C 3.8%