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

# current

Returns the current graphics context of the current thread.

```
class var current: NSGraphicsContext? { get set }
```

## Return Value

The current graphics context of the current thread.

## Discussion

Returns an instance of a concrete subclass of [`NSGraphicsContext`](/documentation/AppKit/NSGraphicsContext).

---

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)