<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTrackingArea/Options-swift.struct/inVisibleRect",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSTrackingAreaOptions@NSTrackingInVisibleRect"
  },
  "title" : "inVisibleRect"
}
-->

# inVisibleRect

Mouse tracking occurs only in the visible rectangle of the view—in other words, that region of the tracking rectangle that is unobscured. Otherwise, the entire tracking area is active regardless of overlapping views. The `NSTrackingArea` object is automatically synchronized with changes in the view’s visible area ([`visibleRect`](/documentation/AppKit/NSView/visibleRect)) and the value returned from [`rect`](/documentation/AppKit/NSTrackingArea/rect) is ignored. This value specifies a behavior of the tracking area defined by the [`NSTrackingArea`](/documentation/AppKit/NSTrackingArea).

```
static var inVisibleRect: NSTrackingArea.Options { get }
```

---

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)