Latest 0.0.2
Homepage https://github.com/acoomans/iOS-MagnifyingGlass
License MIT
Platforms ios , requires ARC
Authors

MagnifyingGlass

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

Build Status
Cocoapods
Cocoapods

screenshots

Install

Just copy the files under the MagnifyingGlass directory into your project, including the .h, .m and .png files.

Install with CocoaPods

You can either clone this repository or use CocoaPods to add MagnifyingGlass to your project.

Add a pod entry to your Podfile:

pod 'iOS-MagnifyingGlass', '~> 0.0.2'

Install the pod(s) by running:

pod install

Usage

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

iOS7 loupe contribution by benhirashima

Latest podspec

{
    "name": "iOS-MagnifyingGlass",
    "version": "0.0.2",
    "platforms": {
        "ios": null
    },
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "summary": "A magnifying glass for iOS.",
    "homepage": "https://github.com/acoomans/iOS-MagnifyingGlass",
    "authors": {
        "Arnaud Coomans": "[email protected]"
    },
    "source": {
        "git": "https://github.com/acoomans/iOS-MagnifyingGlass.git",
        "tag": "0.0.2"
    },
    "source_files": "MagnifyingGlass/*.{h,m}",
    "resources": "MagnifyingGlass/Resources/*.png",
    "requires_arc": true
}

Pin It on Pinterest

Share This