---
title: current
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nsgraphicscontext/current
---

# current

Returns the current graphics context of the current thread.

## Declaration

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

## Return Value

Return Value The current graphics context of the current thread.

## Discussion

Discussion Returns an instance of a concrete subclass of NSGraphicsContext.

## See Also

### Managing the Current Context

- [cgContext](appkit/nsgraphicscontext/cgcontext.md)
- [graphicsPort](appkit/nsgraphicscontext/graphicsport.md)
