<!--
{
  "availability" : [
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKGestureRecognizer/locationInObject()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKGestureRecognizer(im)locationInObject"
  },
  "title" : "locationInObject()"
}
-->

# locationInObject()

Returns the point computed as the current position of the touch event.

```
func locationInObject() -> CGPoint
```

## Return Value

A point in the local coordinate system of the associated interface object.

## Discussion

If multiple touches were detected, this method returns the location of only the first one.

---

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)