Latest 1.1.2
Homepage https://github.com/Fxxxxxx/AAPhotoBrowser
License MIT
Platforms ios 8.0, requires ARC
Dependencies Kingfisher
Frameworks UIKit
Authors

AAPhotoBrowser 类似微信朋友圈效果的图片浏览器

  • 项目地址:AAPhotoBrowser
  • 实现效果:缩放动画,双击放大缩小,单击隐藏,长按回调

实现效果.gif

  • 集成方式:

    • 1.项目原地址下载后,把AAPhotoBrowser文件夹拖入项目
    • 2.Cocoapods pod 'AAPhotoBrowser'
  • 使用方式:
    显示:

    let browser = AAPhotoBrowser.init(with: self)
    browser.selectedIndex = indexPath.item    //初始化显示图片的序号
    UIApplication.shared.keyWindow?.rootViewController?.present(browser, animated: true, completion: nil)

    代理方法:

    
    //需要显示图片的数量
    func numberOfPhotos(with browser: AAPhotoBrowser) -> Int
    //序号对应显示的图片
    func photo(of index: Int, with browser: AAPhotoBrowser) -> AAPhoto

//当前显示的图片序号
@objc optional func didDisplayPhoto(at index: Int, with browser: AAPhotoBrowser) -> Void
//长按序号为index的图片,可以自己在这里添加一些菜单操作
@objc optional func didLongPressPhoto(at index: Int, with browser: AAPhotoBrowser) -> Void


**AAPhoto图片对象不设置`originalView`的话,将不会有显示和隐藏时坐标转换回到原位置的动画**

>欢迎集成和使用,联系方式:[email protected]

Latest podspec

{
    "name": "AAPhotoBrowser",
    "version": "1.1.2",
    "summary": "iOS u7c7bu4f3cu5faeu4fe1u670bu53cbu5708u6837u5f0fu7684u56feu7247u6d4fu89c8u5668",
    "homepage": "https://github.com/Fxxxxxx/AAPhotoBrowser",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Aaron Feng": "[email protected]"
    },
    "swift_version": "4.2",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/Fxxxxxx/AAPhotoBrowser.git",
        "tag": "1.1.2"
    },
    "source_files": "AAPhotoBrowser/*.swift",
    "requires_arc": true,
    "frameworks": "UIKit",
    "dependencies": {
        "Kingfisher": []
    }
}

Pin It on Pinterest

Share This