Skip to content

MRARViewDebugger allows in place view hierarchy visualization using ARKit.

License

Notifications You must be signed in to change notification settings

ycheng06/MRARViewDebugger

 
 

Repository files navigation

MRARViewDebugger

CI Status Version License Platform

MRARViewDebugger allows in place view hierarchy visualization of UIViewControllers using ARKit. The user is given the ability to separate layers by variable distances and scrub through the stack using a slider similar to what Apple provides in Xcode's built in view debugger.

View Debugging 1 Debugging 2

Debug your views on the device when something goes wrong vs. having to deal with reproducing and/or attaching to the process in Xcode.

Live using Strava

https://twitter.com/m4ttrob/status/917635997613023232

Requirements

  • ARKit
  • iOS 11

Installation

MRARViewDebugger is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "MRARViewDebugger"

Present the view debugger like this (to be called from a UIViewController):

MRARViewDebuggerViewController *viewController = [[MRARViewDebuggerViewController alloc] initWithViewController:self];
[self presentViewController:viewController animated:YES completion:nil];

Playing around

  1. Open Example/MRARViewDebugger.xcworkspace
  2. Run the target on an iOS 11 device that supports ARKit
  3. Tap on surface once they are visualized
  4. Walk around view debugger 🎉

Author

@m4ttrob

License

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

About

MRARViewDebugger allows in place view hierarchy visualization using ARKit.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 52.6%
  • Swift 38.4%
  • Ruby 5.1%
  • Objective-C 3.9%