Skip to content

Commit

Permalink
Merge pull request #231 from facebook/paltrace-view
Browse files Browse the repository at this point in the history
Make `paltrace` work on selected views
  • Loading branch information
kastiglione authored Mar 5, 2018
2 parents 0234972 + 3b5f174 commit 9438fa2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion commands/FBAutoLayoutCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 9438fa2

Please sign in to comment.