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

# objectBounds()

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

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

## Return Value

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

## 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.

---

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)