Skip to content

Commit

Permalink
Add accessibilityIdentifier to iOS layout attributes
Browse files Browse the repository at this point in the history
Summary: Apparently useful for debugging e2e tests which reference accessibility Identifiers

Reviewed By: passy

Differential Revision: D15874161

fbshipit-source-id: b6a71a8474b52546bd825c0d13c1487688c7a30e
  • Loading branch information
jknoxville authored and facebook-github-bot committed Jun 18, 2019
1 parent 6bdaa6a commit b0f44d9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ - (NSArray *)validChildrenForNode:(UIView *)node {
withValue: @{
@"isAccessibilityElement": SKMutableObject(@(node.isAccessibilityElement)),
@"accessibilityLabel": SKMutableObject(node.accessibilityLabel ?: @""),
@"accessibilityIdentifier": SKMutableObject(node.accessibilityIdentifier ?: @""),
@"accessibilityValue": SKMutableObject(node.accessibilityValue ?: @""),
@"accessibilityHint": SKMutableObject(node.accessibilityHint ?: @""),
@"accessibilityTraits": AccessibilityTraitsDict(node.accessibilityTraits),
Expand Down

0 comments on commit b0f44d9

Please sign in to comment.