FBXCAccessibilityElement.m 651 B

123456789101112131415161718
  1. /**
  2. * Copyright (c) 2015-present, Facebook, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. */
  9. #import "FBXCAccessibilityElement.h"
  10. #import "FBElementUtils.h"
  11. BOOL FBIsAXElementEqualToOther(id<FBXCAccessibilityElement> first, id<FBXCAccessibilityElement> second)
  12. {
  13. return nil != second && [[FBElementUtils uidWithAccessibilityElement:first]
  14. isEqualToString:([FBElementUtils uidWithAccessibilityElement:second] ?: @"")];
  15. }