Skip to content

anzfactory/ANZSingleImageViewer

Repository files navigation

ANZSingleImageViewer

Version License Platform

ANZSingleImageViewer

Example

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

Requirements

  • Xcode 10+
  • Swift 4.2+
  • iOS 8.0+

Installation

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

pod 'ANZSingleImageViewer'

Sample Usage

class ViewController: UIViewController {

    private func openImage(_ image: UIImage) {

        ANZSingleImageViewer.showImage(image, toParent: self)
    }
}

Zoom Transition

class ViewController: ANZSingleImageViewerSourceTransitionDelegate {

    func viewerTargetImageView() -> UIImageView? {
        
        return targetImageView
    }
}

Author

anzfactory, anz.factory@gmail.com

License

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

CREDIT

Unsplash