diff --git a/commands/FBAutoLayoutCommands.py b/commands/FBAutoLayoutCommands.py index dc3a23e..c38ad4b 100644 --- a/commands/FBAutoLayoutCommands.py +++ b/commands/FBAutoLayoutCommands.py @@ -31,7 +31,9 @@ def args(self): def run(self, arguments, options): view = fb.evaluateInputExpression(arguments[0]) - print fb.describeObject('[{} _autolayoutTrace]'.format(view)) + opt = fb.evaluateBooleanExpression('[UIView instancesRespondToSelector:@selector(_autolayoutTraceRecursively:)]') + traceCall = '_autolayoutTraceRecursively:1' if opt else '_autolayoutTrace' + print fb.describeObject('[{} {}]'.format(view, traceCall)) def setBorderOnAmbiguousViewRecursive(view, width, color):