GithubHelp home page GithubHelp logo

ios-magnifyingglass's Introduction

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

ios-magnifyingglass's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ios-magnifyingglass's Issues

High Volume of Crashes on iOS9 in line: [self.viewToMagnify.layer renderInContext:context];

The bug tracker I'm using is picking up a high number of crashes for iOS9 users, from within the function:

  • (void)drawRect:(CGRect)rect

At the last line: [self.viewToMagnify.layer renderInContext:context];

Details of the exception:
Fatal Exception: CALayerInvalidGeometry
sublayer with non-finite position [inf inf]

Any ideas on what is causing the crash? I don't see any crashes in previous versions of iOS. Just 9+ across all device types (iPhone, iPad, iPod Touch).

Thanks,

Chris

Live Camera Feed

Is there some way to have the magnifying view magnify live feed from the camera?

It doesn't seem to magnify anything that is done inside the layers of a view.

magnify on pangesture path

How can i magnify background view when i drag view from one place to another..??
Wherever p view moves the background will be magnified.

ios simulator screen shot 05-jan-2015 2 54 30 pm

Add crosshairs?

Great component! Not an issue, but is it possible to add crosshairs in the loupe, as an option? Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.