Is there a way to use [self.view recursiveDescription] in Swift? I am trying to use this method but I am getting the following error:
\'UIView\' does not hav
In order to access private / undocumented Objective-C API (like the -recursiveDescription method on UIView) from Swift you can do the following:
UIView).Declare the private method in the category header:
// UIView+Debugging.h
@interface UIView (Debugging)
- (id)recursiveDescription;
@end
Now you can set a breakpoint and print out the recursive description in LLDB:
po view.recursiveDescription() as NSString