Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daisuke0131/ViewMonitor
ViewMonitor can measure view positions with accuracy.
https://github.com/daisuke0131/ViewMonitor
Last synced: 5 days ago
JSON representation
ViewMonitor can measure view positions with accuracy.
- Host: GitHub
- URL: https://github.com/daisuke0131/ViewMonitor
- Owner: daisuke0131
- License: mit
- Created: 2015-06-10T12:13:29.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-16T15:23:34.000Z (over 1 year ago)
- Last Synced: 2024-04-24T19:26:04.061Z (8 months ago)
- Language: Swift
- Homepage:
- Size: 13.9 MB
- Stars: 727
- Watchers: 17
- Forks: 53
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - ViewMonitor - ViewMonitor can measure view positions with accuracy. (Tools / Web View)
- awesome-ios-star - ViewMonitor - ViewMonitor can measure view positions with accuracy. (Tools / Web View)
- awesome-swift-cn - ViewMonitor - Confirm view positions with executing app. (Libs / Layout)
README
![ViewMonitor](assets/viewmonitor.png)
[![Version](https://img.shields.io/cocoapods/v/ViewMonitor.svg?style=flat)](http://cocoapods.org/pods/ViewMonitor)
[![License](https://img.shields.io/cocoapods/l/ViewMonitor.svg?style=flat)](http://cocoapods.org/pods/ViewMonitor)
![Carthage](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)## What's ViewMonitor
ViewMonitor can measure view positions with accuracy.
This library is to check design sheet from native app.
behave like this.- UIViewController
![demo](assets/demo.gif)
- UITableViewController
![demo](assets/table_demo.gif)## Usage
To run the example project, clone the repo.
## Requirements
- iOS 8.0+
- Xcode 7.0+## Installation
### cocoaPods
ViewMonitor is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line in your Podfile:```ruby
pod "ViewMonitor"
```This library use swift.
So, you have to add `use_frameworks!` in Podfile.
after that, please run```ruby
pod install
```### Carthage
To install, you can also use [Carthage](https://github.com/Carthage/Carthage).
You can install Carthage with [Homebrew](http://brew.sh/).```
$ brew update
$ brew install carthage
```To integrate ViewMonitor into your Xcode project using Carthage, write the following line in your Cartfile.
```
github "daisuke0131/ViewMonitor"
```### Manually
If you don't use CocoaPods and Carthage, you should add `Source/*` files in your project.
## How to use
#### For Swift Project
First, `import ViewMonitor`
Execute `ViewMonitor.start()` after application started.
Like this```
import ViewMonitor
func applicationDidFinishLaunching(_ application: UIApplication) {
ViewMonitor.start()
}
```After that, execution button appear.
Please, refer to Example/ViewMonitorExample## Author
### developer
[Daisuke Yamashita](https://github.com/daisuke0131)
### designer
[Satomi Nogawa](https://github.com/stmngw)
## License
ViewMonitor is available under the MIT license. See the LICENSE file for more info.
## Other
[How to measure UIView position on Native App](http://www.slideshare.net/daisukeyamashita180/18potatotips-yamashita) at potatotips #18