This is a tool to inspect your View hierarchys on your iPhone at Realtime,Provide two ways to view Hierarchys: One is the general flat tree structure and anothe is three-dimensional form, So you can get out of Xcode and reach the result you want
This is a tool that allows you to view hierarchically in real time on your iPhone. It provides two ways of viewing, one is a flat tree structure, and the other is a 3D view, so you can get the results you want out of Xcode.
I. Function introduction
1. Support two ways to view the view tree, one is in flat breadcrumb form, the other is in Xcode-like 3D form.
2. Common bread crumb form:
- Supports any runtime modification
view
theframe
,alpha
,backgroundColor
And the modified values are displayed in real time. - Support for refreshing the view tree and show the current view first
topViewController
View hierarchy. - Supports view tree rollback, can always back to
rootWindow
. - In the process of viewing,
view
If released, it will be displayed in the view tree, and users are not allowed to operate the releasedview
. - Supports seamless switching to 3D format.
3. 3D Form:
- Supports 3D rotation and scaling
- Supports click events in 3D view. The view becomes the selected color when clicked, and the one below
Debugview
, displays the hierarchical relationship of the view in the view tree and specific information about the view - Supports seamless cut back to flat form
Two, installation and use
The installation
- The manual:
LayerTreeInspector
Drag all files under the folder into the project. CocoaPod
:podfile
addpod 'LayerTreeInspector'
(To be perfected).
use
/* create rootWindow and makeKeyAndVisible */ [LayerTreeInspector showDebugView];Copy the code
3. Effect display
1. Flat – Basic operation, change UI
2. Plane – Rollback and release
3. 3D- Rotate and scale
4. 3D- Click Show and reset
Download the source code
Github:LayerTreeInspector
Welcome to star