JNPhotosViewer 1.0.6

JNPhotosViewer 1.0.6

Maintained by Jayel Zaghmoutt, Mohammad Nabulsi.



  • By
  • Jayel Zaghmoutt and Mohammad Nabulsi

JNPhotosViewer

CI Status Version License Platform

Preview

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • iOS 9.0+ / macOS 10.10+
  • Xcode 9.0+
  • Swift 4+

Installation

JNPhotosViewer is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'JNPhotosViewer'

Setup

let viewController = JNPhotosViewerViewController()
viewController.imagesList = [JNPhoto]
viewController.delegate = self
viewController.showDownloadButton = false
self.present(viewController, animated: true, completion: nil)

Public variables

var imagesList: Array of JNPhoto
var delegate: JNPhotosViewerViewControllerDelegate
var showDownloadButton: Bool

Public classes

  1. JNPhotosViewerViewController
  2. JNPhotosViewerViewControllerDelegate
    1. photosViewerViewController(viewController: JNPhotosViewerViewController, refrenceViewFor photo: JNPhoto) -> UIImageView?
      This method will return the image view for photo to use for dismiss animation if not provided the default animation will be appiled.
    2. photosViewerViewController(viewController: JNPhotosViewerViewController, didClickDownload photo: JNPhoto, completion: () -> Void)
      This method will be called when the download button clicked, call the completion to hide loading indicator from download button.

Author

Yara AbuHijleh & Mohammad Nabulsi

License

JNPhotosViewer is available under the MIT license. See the LICENSE file for more info. See the LICENSE file for more info.