Coder Social home page Coder Social logo

i-miss-you / viewmonitor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from daisuke0131/viewmonitor

0.0 2.0 0.0 14.56 MB

ViewMonitor can measure view positions with accuracy.

License: MIT License

Ruby 8.68% Swift 53.60% Objective-C 17.36% Shell 20.36%

viewmonitor's Introduction

ViewMonitor

Version License Carthage

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

  • UITableViewController

demo

Usage

To run the example project, clone the repo.

Requirements

  • iOS 8.0+
  • Xcode 7.0+

Installation

cocoaPods

ViewMonitor is available through CocoaPods. To install it, simply add the following line in your Podfile:

pod "ViewMonitor"

This library use swift. So, you have to add use_frameworks! in Podfile.

after that, please run

pod install

Carthage

To install, you can also use Carthage.

You can install Carthage with Homebrew.

$ 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 application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
  ViewMonitor.start()
  return true
}

After that, execution button appear.

Please, refer to Example/ViewMonitorExample

For Objective-C Project

Add bridge-header in your project. Add #import "YourProjectName-Swift.h" in your project.

Import ViewMonitor, @import ViewMonitor

Execute [ViewMonitor start] after application started. Like this

#import "YourProjectName-Swift.h"
@import ViewMonitor;

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    [ViewMonitor start];
    return YES;
}

After that, execution button appear.

Please, refer to Example/ViewMonitorObjcExample

Author

developer

Daisuke Yamashita

designer

Satomi Nogawa

License

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

Other

How to measure UIView position on Native App at potatotips #18

viewmonitor's People

Contributors

daisuke0131 avatar stmngw avatar pedrovereza avatar

Watchers

James Cloos avatar Beihaozhang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.