<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTrackingArea/rect",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTrackingArea(py)rect"
  },
  "title" : "rect"
}
-->

# rect

The rectangle defining the area encompassed by the receiver.

```
var rect: NSRect { get }
```

## Discussion

The rectangle is specified in the local coordinate system of the associated view. If the [`inVisibleRect`](/documentation/AppKit/NSTrackingArea/Options-swift.struct/inVisibleRect) option is specified, the receiver is automatically synchronized with changes in the view’s visible area ([`visibleRect`](/documentation/AppKit/NSView/visibleRect)) and the value of this property is ignored.

---

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)