PAGalleryView 0.2.3

PAGalleryView 0.2.3

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Aug 2017

Maintained by Pavel Alexeev.



  • By
  • Pavel Alexeev

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

Usage

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

Requirements

Minimum iOS Target – iOS 7.

AFNetworking is used to download images.

Installation

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"];

Author

Pavel Alexeev, [email protected]

License

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