Timee ImageViewer is a lightweight image viewer framework for iOS app.
This ImageViewer does NOT depend on other libraries, and you need to choose your favorite image downloading library like Kingfisher.
Zoom | Pagenation |
---|---|
![]() |
![]() |
// 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?()
}
}
}
https://github.com/Taimee/ImageViewer.git
Copyright 2020 Timee, Inc.
Licensed under the MIT License.
link |
Stars: 11 |
Last commit: 5 weeks ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics