MRARViewDebugger allows in place view hierarchy visualization of UIViewController
s 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
- ARKit
- iOS 11
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];
- Open
Example/MRARViewDebugger.xcworkspace
- Run the target on an iOS 11 device that supports ARKit
- Tap on surface once they are visualized
- Walk around view debugger 🎉
MRARViewDebugger is available under the MIT license. See the LICENSE file for more info.