GithubHelp home page GithubHelp logo

constraintchecker's Introduction

ConstraintChecker

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Demo

The demo here is simple with issue which quite easy to find.But ambiguous constraint in your real project could be much more obscure and sometimes may even act as you expected, with this tool, it will help you to identify them automatically before they become real problem.

这个示例比较简单,一眼就可以发现问题。但是真实项目中由于页面元素多且复杂,往往难以发现。并且有些情况下,即便有这个问题,也不一定会出现显示上的异常。即出现多种可能,但目前版本下计算结果相同。这种问题暂时可能不会有什么影响,但一旦系统更新,有时候就会爆发出来。这个工具可以帮你轻松实现监控并定位有问题的视图。

MantleDemo~

Requirements

  1. A tool that help you find ambiguous constraint automatically,just install it(only in debug mode will be much safer),no extra configration needed; 仅需通过Pod安装,无需任何配置,强烈建议只在DEBUG下安装

  2. Once any ambiguous constraints discoverd,a flashing button will appeared on top of the screen.Click it will log all infomation to console which will be great help for identifying the problem,meanwhile the condemned view will be marked with red border. 一旦检测到问题,即会在顶部右上角显示一个闪动的按钮,点击可在console窗口查看详细信息。并且有问题的视图会用红色边框标记出来。

  3. Only the view hierarchy being diplayed will be checked. 只有当前展示的视图会被检查,即当前key window的所有视图元素

Installation

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

pod "ConstraintChecker",   :configurations => ['Debug']

Author

willice9527, [email protected]

License

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

constraintchecker's People

Watchers

 avatar  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.