<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSGraphicsContext/isDrawingToScreen",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSGraphicsContext(py)drawingToScreen"
  },
  "title" : "isDrawingToScreen"
}
-->

# isDrawingToScreen

A Boolean value that indicates whether the drawing destination is the screen.

```
var isDrawingToScreen: Bool { get }
```

## Discussion

<doc://com.apple.documentation/documentation/Swift/true> if the drawing destination is the screen. If the value of the property is <doc://com.apple.documentation/documentation/Swift/false> may mean that the drawing destination is a printer, but the destination may also be a PDF or EPS file. You can call [`attributes`](/documentation/AppKit/NSGraphicsContext/attributes) to see if additional information is available about the drawing destination.

---

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)