<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSView/removeTrackingRect(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSView(im)removeTrackingRect:"
  },
  "title" : "removeTrackingRect(_:)"
}
-->

# removeTrackingRect(_:)

Removes the tracking rectangle identified by a tag.

```
func removeTrackingRect(_ tag: NSView.TrackingRectTag)
```

## Parameters

`tag`

An integer value identifying a tracking rectangle. It was returned by a previously sent [`addTrackingRect(_:owner:userData:assumeInside:)`](/documentation/AppKit/NSView/addTrackingRect(_:owner:userData:assumeInside:)) message.

## See Also

[`-  removeTrackingArea:`](/documentation/AppKit/NSView/removeTrackingArea(_:))

Removes a given tracking area from the view.



---

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)