---
title: rect
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstrackingarea/rect
---

# rect

The rectangle defining the area encompassed by the receiver.

## Declaration

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

## Discussion

Discussion The rectangle is specified in the local coordinate system of the associated view. If the inVisibleRect option is specified, the receiver is automatically synchronized with changes in the view’s visible area (visibleRect) and the value of this property is ignored.

## See Also

### Getting Object Attributes

- [options](appkit/nstrackingarea/options-swift.property.md)
- [owner](appkit/nstrackingarea/owner.md)
- [userInfo](appkit/nstrackingarea/userinfo.md)
