https://github.com/lhuanyu/caviewdebugger
A lightweight on-device View Hierarchy Debugger(like Xcode) based on Core Animation.
https://github.com/lhuanyu/caviewdebugger
debugger debugger-visualizer debugging-tool ios objective-c swift xcode
Last synced: about 2 months ago
JSON representation
A lightweight on-device View Hierarchy Debugger(like Xcode) based on Core Animation.
- Host: GitHub
- URL: https://github.com/lhuanyu/caviewdebugger
- Owner: lhuanyu
- License: mit
- Created: 2020-03-26T02:31:28.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-22T15:08:10.000Z (over 3 years ago)
- Last Synced: 2025-04-15T10:03:06.090Z (2 months ago)
- Topics: debugger, debugger-visualizer, debugging-tool, ios, objective-c, swift, xcode
- Language: Swift
- Homepage:
- Size: 2.98 MB
- Stars: 27
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CAViewDebugger
A lightweight on-device View Debugger based on Core Animation. Inspired by [InAppViewDebugger](https://github.com/indragiek/InAppViewDebugger), but implemented in a traditonal way.
More functions are ongoing.
## Features
- [x] 3D Snapshot View Hierarchy implemented in Core Animation.
- [x] Original Xcode UI style and icons.
- [x] Full gestures support.
- [x] Object and Size inspectors.
- [ ] Dynamic editing on views.## Requirements
- iOS 10.0+
- Objective-C, Swift 5.0## Usage
### Swift
```swift
import CAViewDegbugger
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
ViewDebuggerViewController.present(in: self.view.window!)
}```
### Objective-C
```swift
@import CAViewDegbugger
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
[ViewDebuggerViewController presentIn:self.view.window];
}```
### Full Gestures Support- [x] Tap to select a view. Tap on scene to deselect.
- [x] Double tap to focus a view and its children. Double tap on scene to lose focus.
- [x] Zoom.
- [x] Pan to rotate.
- [x] Double pan to move scene around.## Installation
CAViewDebugger is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'CAViewDebugger'
```
For latest version:```ruby
pod 'CAViewDebugger', :git => 'https://github.com/lhuanyu/CAViewDebugger.git'
```Or you can simpy add files in [**CAViewDebugger/ViewDebugger**](https://github.com/lhuanyu/CAViewDebugger/tree/master/CAViewDebugger/ViewDebugger) to your project.
## Author
Huanyu Luo, [email protected]
## License
CAViewDebugger is available under the MIT license. See the LICENSE file for more info.