Skip to content
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.

Latest commit

 

History

History
45 lines (38 loc) · 1.6 KB

README.md

File metadata and controls

45 lines (38 loc) · 1.6 KB

iFuga

iOS component for displaying a fullscreen image gallery Supports orientation changes

Installation

iFuga is available via cocoapods. If you're not familiar with it, see here. Once you have cocoapods installed and ready, add to your project's Podfile following line

pod 'iFuga', '~>1.1'

For more options in Podfile, please see official documentation.

Usage

To be able to show a fullscreen presentation of image from inside your viewController you should have an instance of FGController. Creating an instance is pretty straightforward:

_fgController = [[FGController alloc] initWithDelegate:self];

Next, in an method catching user's action or whereever you want to show a fullscreen image, call either

[_fgController showImage:desiredImage];

or

[_fgController showImage:desiredImage fromThumbnail:self.imageView];

By default, iFuga supports all interface orientations regardless whether calling viewController suports them or not. To restrict iFuga to turn to certain orientation, implement it's delegate method canRotateToInterfaceOrientation: as desired, for example:

-(BOOL)canRotateToInterfaceOrientation:(UIInterfaceOrientation)orientation
{
    return UIInterfaceOrientationIsPortrait(orientation);
}

Contact

iFuga was created by @gavrix.
Also, please drop by my blog

License

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