A lightweight on-device View Debugger based on Core Animation. Inspired by InAppViewDebugger, but implemented in a traditonal way.
More functions are ongoing.
- 3D Snapshot View Hierarchy implemented in Core Animation.
- Original Xcode UI style and icons.
- Full gestures support.
- Object and Size inspectors.
- Dynamic editing on views.
- iOS 10.0+
- Objective-C, Swift 5.0
import CAViewDegbugger
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
ViewDebuggerViewController.present(in: self.view.window!)
}
@import CAViewDegbugger
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
[ViewDebuggerViewController presentIn:self.view.window];
}
- Tap to select a view. Tap on scene to deselect.
- Double tap to focus a view and its children. Double tap on scene to lose focus.
- Zoom.
- Pan to rotate.
- Double pan to move scene around.
CAViewDebugger is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'CAViewDebugger'
For latest version:
pod 'CAViewDebugger', :git => 'https://github.com/lhuanyu/CAViewDebugger.git'
Or you can simpy add files in CAViewDebugger/ViewDebugger to your project.
Huanyu Luo, [email protected]
CAViewDebugger is available under the MIT license. See the LICENSE file for more info.