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
First add a category @interface
without @implementation
in your bridging header.
@interface UIView (Debug)
- (id)recursiveDescription;
- (id)_autolayoutTrace; // This one is even sweeter
@end
then in your console
po self.recursiveDescription() as NSString
po self._autolayoutTrace() as NSString
The key here is as NSString
not as String