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

iOS component for displaying a fullscreen image gallery

License

Notifications You must be signed in to change notification settings

gavrix/ifuga

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

iOS component for displaying a fullscreen image gallery

Resources

License

Stars

Watchers

Forks

Packages

No packages published