---
title: "screenRect(fromView:rect:)"
framework: appkit
role: symbol
role_heading: Type Method
path: "appkit/nsaccessibility-swift.struct/screenrect(fromview:rect:)"
---

# screenRect(fromView:rect:)

Returns the frame in screen coordinates.

## Declaration

```swift
static func screenRect(fromView parentView: NSView, rect frame: NSRect) -> NSRect
```

## Discussion

Discussion Given a frame in the specified view’s coordinates, it returns the same frame in the screen’s coordinates.

## See Also

### Getting Screen Coordinates

- [screenPoint(fromView:point:)](appkit/nsaccessibility-swift.struct/screenpoint(fromview:point:).md)
