<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/NSObject-swift.class/accessibilityIndex(ofChild:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Objective-C Runtime",
      "ObjectiveC"
    ],
    "preciseIdentifier" : "c:objc(cs)NSObject(im)accessibilityIndexOfChild:"
  },
  "title" : "accessibilityIndex(ofChild:)"
}
-->

# accessibilityIndex(ofChild:)

Returns the index of the specified accessibility child in the parent.

```
func accessibilityIndex(ofChild child: Any) -> Int
```

## Parameters

`child`

The accessibility child of an object.

## Return Value

The index of the accessibility child object in the parent. Returns `NSNotFound` if the child does not exist.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)