Latest 1.1.0
Homepage https://github.com/gdutxzy/XPhotoBrowser
License MIT
Platforms ios 8.0, requires ARC
Dependencies SDWebImage
Frameworks UIKit
Authors

CI Status
Version
License
Platform

  1. 支持3D-Touch推出,并支持3D-Touch保存图片。
  2. 支持屏幕旋转。
  3. 支持图片跟随手势运动而消失,类似微信等APP的图片浏览器。
  4. 支持普遍的图片浏览器所拥有的单击退出、双击缩放、捏合手势缩放、滑动切换图片的功能。
  5. 渐变跟踪原图大小的推出及消失转场动画。
  6. 支持高宽比大于5的长图画布展示。

Screenshots

XPhotoBrowser XPhotoBrowser XPhotoBrowser

Example

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

Demo code


NSArray *urlArray = self.urlArray;
NSArray *imageViewArray = @[self.imageView1,self.imageView2];

XPhotoBrowserVC *vc = [XPhotoBrowserVC photoBrowserWithImageURLs:urlArray images:nil imageViews:imageViewArray currentIndex:index];
[self presentViewController:vc animated:YES completion:^{

}];

Requirements

Installation

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

pod 'XPhotoBrowser'

Author

gdutxzy, [email protected]

License

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

Latest podspec

{
    "name": "XPhotoBrowser",
    "version": "1.1.0",
    "summary": "PhotoBrowser,supports 3D-Touch,Drag to disappear",
    "description": "'PhotoBrowser  is an image browser , it supports 3D-Touch , rotating the screen , zooming images , Drag to disappear'",
    "homepage": "https://github.com/gdutxzy/XPhotoBrowser",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "gdutxzy": "[email protected]"
    },
    "source": {
        "git": "https://github.com/gdutxzy/XPhotoBrowser.git",
        "tag": "1.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "XPhotoBrowser/**/*",
    "public_header_files": [
        "XPhotoBrowser/XPhotoBrowser.h",
        "XPhotoBrowser/UIView+XExtension.h",
        "XPhotoBrowser/XPhotoBrowserVC.h"
    ],
    "frameworks": "UIKit",
    "dependencies": {
        "SDWebImage": []
    }
}

Pin It on Pinterest

Share This