Latest 1.0.1
Homepage https://github.com/Minitour/AZImagePreview
License MIT
Platforms ios 9.0
Authors

iOS Framework that makes it easy to preview images on any UIImageView.

Screenshots

Installation:

Cocoa Pods:

pod 'AZImagePreview'

Manual:

Simply drag and drop the Sources folder to your project.

Conform to the AZPreviewImageViewDelegate protocol:


extension ViewController: AZPreviewImageViewDelegate{
    func previewImageViewInRespectTo(_ previewImageView: UIImageView) -> UIView? {
        //return self.view or self.navigationController?.view (if you are using a navigation controller.
        return view
    }

    func previewImageView(_ previewImageView: UIImageView, requestImagePreviewWithPreseneter presenter: AZImagePresenterViewController) {
        present(presenter, animated: false, completion: nil)
    }
}

Set the delegate on the UIImageView:


@IBOutlet weak var imageView: UIImageView!

override func viewDidLoad(){
    super.viewDidLoad()

    imageView.delegate = self
}

Latest podspec

{
    "name": "AZImagePreview",
    "version": "1.0.1",
    "summary": "iOS Framework that makes it easy to preview images on any UIImageView.",
    "homepage": "https://github.com/Minitour/AZImagePreview",
    "license": "MIT",
    "authors": {
        "Antonio Zaitoun": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/Minitour/AZImagePreview.git",
        "tag": "1.0.1"
    },
    "source_files": "Sources/**/*.{swift}",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This