<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/SKNode/accessibilityHitTest(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SpriteKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKNode(im)accessibilityHitTest:"
  },
  "title" : "accessibilityHitTest(_:)"
}
-->

# accessibilityHitTest(_:)

Returns the frontmost user interface element in the element hierarchy.

```
func accessibilityHitTest(_ point: CGPoint) -> Any?
```

## Parameters

`point`

Relative to the bottom-left of the screen, in screen points, and guaranteed to lie within the receiver.

## Discussion

Override this method to implement your own, deeper hit testing within a user interface element.

---

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)