---
title: "unignoredDescendant(of:)"
framework: appkit
role: symbol
role_heading: Type Method
path: "appkit/nsaccessibility-swift.struct/unignoreddescendant(of:)"
---

# unignoredDescendant(of:)

Returns an unignored accessibility object, descending the hierarchy, if necessary.

## Declaration

```swift
static func unignoredDescendant(of element: Any) -> Any?
```

## Discussion

Discussion Tests whether element is an ignored object, returning either element, if it is not ignored, or the first unignored descendant of element. Use this function only if you know there is a linear, one-to-one, hierarchy below element. Otherwise, if element has either no unignored children or multiple unignored children, this function fails and returns nil.

## See Also

### Getting Accessibility Objects

- [unignoredAncestor(of:)](appkit/nsaccessibility-swift.struct/unignoredancestor(of:).md)
- [unignoredChildren(from:)](appkit/nsaccessibility-swift.struct/unignoredchildren(from:).md)
- [unignoredChildrenForOnlyChild(from:)](appkit/nsaccessibility-swift.struct/unignoredchildrenforonlychild(from:).md)
