Skip to content

alanpaxton/iOS-MagnifyingGlass

 
 

Repository files navigation

ACMagnifyingGlass is a magnifier like the one you can find in the notes iOS app when moving the cursor.


Install:

Just copy the files under the MagnifyingGlass directory into your project.


Howto:

Simply create a ACMagnifyingView view (with alloc/initWithFrame or from nib) and a magnifier will show up when you tap the screen, magnifying the view and its subviews.

It is possible to use a custom magnifier, like this:

ACMagnifyingGlass *mag = [[ACMagnifyingGlass alloc] initWithFrame:CGRectMake(0, 0, 120, 120)];
mag.scale = 2;
self.magnifyingView.magnifyingGlass = mag;

If you want a loupe like the real one:

ACLoupe *loupe = [[ACLoupe alloc] init];
self.magnifyingView.magnifyingGlass = loupe;

Thanks:

This magnifier is inspired by the one from Chadwick Wood

The loupe image was extracted thanks to 0xced


screenshots

About

A magnifying glass for iOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published