Skip to content

Repository files navigation

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

ZoomPagenation

Usage

// ViewController
letimageURLs:[URL]=[someurl array ...]letvc=ImageViewerController.init(imageURLs: imageURLs)present(vc, animated:true)
// Delegate for asynchronous image downloading
extensionViewController:ImageViewerControllerDelegate{func load(_ imageURL:URL, into imageView:UIImageView, completion:(()->Void)?){
imageView.setImage(with: imageURL){ _ incompletion?()}}}

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.

About

Simple image viewer for iOS app

Resources

Stars

15 stars

Watchers

45 watching

Forks

Releases

Packages

Used by

Contributors

Languages