Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 2.15 KB

File metadata and controls

58 lines (39 loc) · 2.15 KB

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.