The Wayback Machine - https://web.archive.org/web/20201022103854/https://github.com/lhuanyu/CAViewDebugger
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
doc
 
 
 
 
 
 
 
 

README.md

CAViewDebugger

A lightweight on-device View Debugger based on Core Animation. Inspired by InAppViewDebugger, but implemented in a traditonal way.

More functions are ongoing.

Features

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

Requirements

  • iOS 10.0+
  • Objective-C, Swift 4.2

Usage

Swift

import CAViewDegbugger

override func viewDidAppear(_ animated: Bool) {
    super.viewDidAppear(animated)
    ViewDebuggerViewController.present(in: self.view.window!)
}

Objective-C

@import CAViewDegbugger

- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    [ViewDebuggerViewController presentIn:self.view.window];
}

Full Gestures Support

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

Installation

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.

Known Issue

Cocoapod is not fully compatible with the new build system since Xcode 10 when intergated pods with assets(issue#8122). If you find icons lost, try to add this line below to your podfile:

install! 'cocoapods', :disable_input_output_paths => true

Author

Huanyu Luo, lhuany@gmail.com

License

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

About

A lightweight on-device View Hierarchy Debugger(like Xcode) based on Core Animation.

Topics

Resources

License

Packages

No packages published
You can’t perform that action at this time.