- 支持3D-Touch推出,并支持3D-Touch保存图片。
- 支持屏幕旋转。
- 支持图片跟随手势运动而消失,类似微信等APP的图片浏览器。
- 支持普遍的图片浏览器所拥有的单击退出、双击缩放、捏合手势缩放、滑动切换图片的功能。
- 渐变跟踪原图大小的推出及消失转场动画。
- 支持高宽比大于5的长图画布展示。
To run the example project, clone the repo, and run pod install
from the Example directory first.
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:^{
}];
XPhotoBrowser is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'XPhotoBrowser'
gdutxzy, gdutxzy@163.com
XPhotoBrowser is available under the MIT license. See the LICENSE file for more info.