https://github.com/zhipingyang/xydebugview
XYDebugView is debug tool to draw the all view's frame in device screen and show it by 2d/3d style like reveal did.
https://github.com/zhipingyang/xydebugview
3d-style debug debugview draw reveal
Last synced: 6 months ago
JSON representation
XYDebugView is debug tool to draw the all view's frame in device screen and show it by 2d/3d style like reveal did.
- Host: GitHub
- URL: https://github.com/zhipingyang/xydebugview
- Owner: ZhipingYang
- License: mit
- Created: 2017-05-25T02:49:06.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-02-28T01:44:30.000Z (over 2 years ago)
- Last Synced: 2025-03-26T08:11:09.115Z (7 months ago)
- Topics: 3d-style, debug, debugview, draw, reveal
- Language: Objective-C
- Homepage:
- Size: 4.61 MB
- Stars: 101
- Watchers: 7
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
> **[XYDebugView](https://zhipingyang.github.io/XYDebugView)** is debug tool to draw the all view's frame in device screen and show it by 2d/3d style like [Reveal](https://revealapp.com/) did.
## ScreenShot
![]()
![]()
![]()
## Use
Run in [Online iPhone Simulator](https://zhipingyang.github.io/XYDebugView)
**Open debug view funtion**
> tap the red statusBar to show or destroy the debug result```objective-c
// XYDebugViewManager/**
开启debug功能,默认使用XYDebugStyle2D对keyWindow进行debug
*/
+ (void)showDebug;/**
debug the keyWindow
*/
+ (void)showDebugWithStyle:(XYDebugStyle)debugStyle;/**
debug specific view@param View the view to debug layout
@param debugStyle 2d/3d
*/
+ (void)showDebugInView:(nullable UIView *)View withDebugStyle:(XYDebugStyle)debugStyle;
```**Close debug view funtion**
> dismiss red statusBar & remove debugging```objective-c
// XYDebugViewManager/**
close debug function
*/
+ (void)dismissDebugView;
```## debug view with 2d
![]()
![]()
## debug with 3d
- support gestures
- single touch pan: to rotate view angle
- double touches pan: move the position
- rotation: rotate z axis
- pinch: zoom
- recover to init Transform
- other transform
- change distance between layers (zPosition)
- prominently the specific layer (alpha)
- change perspective effect drawings (m34)
![]()
![]()
## debug specific view with 3d
![]()
![]()
## Installation
XYDebugView is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod "XYDebugView", '~> 1.0.1'
```## GitPage
https://zhipingyang.github.io/XYDebugView
## TODO
- [ ] 添加呈现中的视图列表,选择性debug
- [ ] 改进任意角度的m34值修改
- [ ] 添加 ARKit
- [ ] 修复特殊字符显示问题## Author
XcodeYang, xcodeyang@gmail.com
## License
XYDebugView is available under the MIT license. See the LICENSE file for more info.