iOS library implementing fullscreen and in-place image gallery similar to Facebook and VK applications.
- Smooth animations
- Drag to exit fullscreen gesture
- Autorotate of fullscreen images (no need to support portrait & landscape modes in your ViewController)
- Activity and error indicators
To run the example project, clone the repo, and run pod install
from the Example directory first.
Minimum iOS Target – iOS 7.
AFNetworking is used to download images.
PAGalleryView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "PAGalleryView"
##Usage
Simple example:
NSArray *images = @[
[[NSBundle mainBundle] URLForResource:@"image_1" withExtension:@"jpg"],
[[NSBundle mainBundle] URLForResource:@"image_2" withExtension:@"jpg"],
[[NSBundle mainBundle] URLForResource:@"image_3" withExtension:@"jpg"],
];
self.galleryView.imageURLs = images;
Using fullscreen images:
self.galleryView.imageURLs = images;
self.galleryView.fullScreenImageURLs = fullScreenImages;
self.galleryView.errorImage = [UIImage imageNamed:@"errorImage"];
Pavel Alexeev, [email protected]
PAGalleryView is available under the MIT license. See the LICENSE file for more info.