Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/linusling/lnsmagnifierview

🔍 放大镜🔎
https://github.com/linusling/lnsmagnifierview

magnifier magnifier-glass swift

Last synced: 17 days ago
JSON representation

🔍 放大镜🔎

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.