Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/linusling/lnsmagnifierview
🔍 放大镜🔎
https://github.com/linusling/lnsmagnifierview
magnifier magnifier-glass swift
Last synced: 17 days ago
JSON representation
🔍 放大镜🔎
- Host: GitHub
- URL: https://github.com/linusling/lnsmagnifierview
- Owner: LinusLing
- License: mit
- Created: 2020-08-25T03:41:22.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-25T07:03:32.000Z (about 4 years ago)
- Last Synced: 2024-10-10T19:19:37.706Z (about 1 month ago)
- Topics: magnifier, magnifier-glass, swift
- Language: Swift
- Homepage:
- Size: 96.7 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LNSMagnifierView 🔎
[![CI Status](https://img.shields.io/travis/LinusLing/LNSMagnifierView.svg?style=flat)](https://travis-ci.org/LinusLing/LNSMagnifierView)
[![Version](https://img.shields.io/cocoapods/v/LNSMagnifierView.svg?style=flat)](https://cocoapods.org/pods/LNSMagnifierView)
[![License](https://img.shields.io/cocoapods/l/LNSMagnifierView.svg?style=flat)](https://cocoapods.org/pods/LNSMagnifierView)
[![Platform](https://img.shields.io/cocoapods/p/LNSMagnifierView.svg?style=flat)](https://cocoapods.org/pods/LNSMagnifierView)## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
![demo](https://i.loli.net/2020/08/25/RJK94Y1ULm2xjsA.gif)
## Parameters
1. `viewToMagnify`:required for magnifying 🔎
2. `scale`:magnification scale,default is 2.0
3. `offsetX`:offset on x axis from view's center,default is 0.0
4. `offsetY`:offset on y axis from view's center,default is 0.0
5. `needPlusSign`:should add plus sign in the middle of magnifier,default is false
6. `outlineColor`:border color of magnifier,default is lightGray
7. `outlineWidth`:border line width of magnifier,default is 2.0
8. `size`:size of magnifier,default is 100.0## Installation
LNSMagnifierView is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'LNSMagnifierView'
```## Author
LinusLing, [email protected]
## License
LNSMagnifierView is available under the MIT license. See the LICENSE file for more info.