---
title: visibleRect
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsview/visiblerect
---

# visibleRect

The portion of the view that isn’t clipped by its superviews.

## Declaration

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

## Discussion

Discussion Visibility, as reflected by this property, doesn’t account for whether other view or window objects overlap the current view or whether the current view is installed in a window at all. This value of this property is NSZeroRect if the current view is effectively hidden. During a printing operation the visible rectangle is further clipped to the page being imaged. clipsToBounds affects this property.

## See Also

### Related Documentation

- [isHidden](appkit/nsview/ishidden.md)
- [documentVisibleRect](appkit/nsscrollview/documentvisiblerect.md)
- [documentVisibleRect](appkit/nsclipview/documentvisiblerect.md)
- [isVisible](appkit/nswindow/isvisible.md)

### Drawing the View’s Content

- [updateLayer()](appkit/nsview/updatelayer().md)
- [draw(_:)](appkit/nsview/draw(_:).md)
- [clipsToBounds](appkit/nsview/clipstobounds.md)
- [canDrawConcurrently](appkit/nsview/candrawconcurrently.md)
- [getRectsBeingDrawn(_:count:)](appkit/nsview/getrectsbeingdrawn(_:count:).md)
- [needsToDraw(_:)](appkit/nsview/needstodraw(_:).md)
- [wantsDefaultClipping](appkit/nsview/wantsdefaultclipping.md)
- [bitmapImageRepForCachingDisplay(in:)](appkit/nsview/bitmapimagerepforcachingdisplay(in:).md)
- [cacheDisplay(in:to:)](appkit/nsview/cachedisplay(in:to:).md)
- [NSBorderType](appkit/nsbordertype.md)
