Latest 0.0.1
Homepage https://github.com/570262616/EzPhotoBrowse
License MIT
Platforms ios 8.0
Dependencies SDWebImage
Frameworks UIKit
Authors

image

Features

  • Lightweight image browser

Communication

  • If you found a bug, open an issue, typically with related pattern.
  • If you have a feature request, open an issue.

Requirements

  • iOS 8.0+
  • Xcode 8.3.2+
  • Swift 3.0+

Installation

CocoaPods

pod 'EzPhotoBrowse'

Usage

lazy var photoBrowserAnimator = PhotoBrowserAnimator()
let vc = PhotoBrowserViewController(urls: urls, index: index)
vc.delegate = self

vc.modalPresentationStyle = .custom
vc.transitioningDelegate = self.photoBrowserAnimator

self.present(vc, animated: true, completion: nil)
Implement proxy method: PhotoBrowserViewControllerDelegate
func photoBrowserSourceRect(index: Int) -> CGRect {

    let indexPath = IndexPath(row: index, section: 0)

    let cell = collectionView?.cellForItem(at: indexPath)

    return self.collectionView!.convert(cell!.frame, to: UIApplication.shared.keyWindow!)
}

Latest podspec

{
    "name": "EzPhotoBrowse",
    "version": "0.0.1",
    "summary": "Lightweight image browser",
    "homepage": "https://github.com/570262616/EzPhotoBrowse",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "zhang peng": "[email protected]"
    },
    "source": {
        "git": "https://github.com/570262616/EzPhotoBrowse.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "EzPhotoBrowse/*.*",
    "frameworks": "UIKit",
    "dependencies": {
        "SDWebImage": []
    },
    "pushed_with_swift_version": "3.0.2"
}

Pin It on Pinterest

Share This