---
title: locationInObject()
framework: watchkit
role: symbol
role_heading: Instance Method
path: watchkit/wkgesturerecognizer/locationinobject()
---

# locationInObject()

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

## Declaration

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

## Return Value

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

## Discussion

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

## See Also

### Getting the Touch Information

- [objectBounds()](watchkit/wkgesturerecognizer/objectbounds().md)
