Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/GJNilsen/YPMagnifyingGlass
Magnifying Glass for Swift
https://github.com/GJNilsen/YPMagnifyingGlass
Last synced: about 1 month ago
JSON representation
Magnifying Glass for Swift
- Host: GitHub
- URL: https://github.com/GJNilsen/YPMagnifyingGlass
- Owner: GJNilsen
- License: mit
- Archived: true
- Created: 2015-06-05T17:42:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-02-21T16:32:57.000Z (over 3 years ago)
- Last Synced: 2024-04-04T19:34:33.150Z (6 months ago)
- Language: Swift
- Size: 6.84 KB
- Stars: 64
- Watchers: 8
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# YPMagnifyingGlass
YPMagnifyingGlass is Swift port of [ACMagnifyingGlass](https://github.com/acoomans/iOS-MagnifyingGlass), 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](http://yuppielabel.com)## Contributor
[Matt Long](https://github.com/perlmunger)## Thanks
Thanks a lot to [Arnaud Coomans](http://acoomans.com) for writing the original class this was ported from, [ACMagnificationGlass](https://github.com/acoomans/iOS-MagnifyingGlass). 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.