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

GJNilsen/YPMagnifyingGlass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

YPMagnifyingGlass

YPMagnifyingGlass is Swift port of ACMagnifyingGlass, a magnifier like the one in the iOS notes app.

Warning:

This code is not maintained and unsupported. It doesnt work on modern iOS/iPad OS versions.

Usage

Select the view you want to magnify, and embed it in another view. Set the views class to YPMagnifyingGlass, and connect it to an IBOutlet property in your UIViewController (or whatever else). In this example you call the connected view magnifyingView.

Then in your code, add

var mag = YPMagnifyingGlass(frame:CGRectMake(magnifyingView.frame.origin.x, magnifyingView.frame.origin.y,100,100))
mag.scale = 2
self.magnifyingView.magnifyingGlass = mag

Installation

Add YPMagnifyingGlass.swift and YPMagnifyingView.swift to your project

Author

Geert-Jan Nilsen ( [email protected] ) Yuppielabel

Contributor

Matt Long

Thanks

Thanks a lot to Arnaud Coomans for writing the original class this was ported from, ACMagnificationGlass. He has kindly granted me to share it with all of you.

License

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

About

Magnifying Glass for Swift

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages