---
title: objectBounds()
framework: watchkit
role: symbol
role_heading: Instance Method
path: watchkit/wkgesturerecognizer/objectbounds()
---

# objectBounds()

Returns the dimensions of the interface object (measured in points) associated with the gesture recognizer.

## Declaration

```swift
func objectBounds() -> CGRect
```

## Return Value

Return Value The bounding rectangle of the interface object to which the gesture recognizer is attached.

## Discussion

Discussion You attach a gesture recognizer to a specific element in your storyboard file. At runtime, you use this property to get the dimensions of that element.

## See Also

### Getting the Touch Information

- [locationInObject()](watchkit/wkgesturerecognizer/locationinobject().md)
