---
title: cgContext
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsgraphicscontext/cgcontext
---

# cgContext

The Core Graphics context, which is a low-level, platform-specific graphics context.

## Declaration

```swift
var cgContext: CGContext { get }
```

## See Also

### Managing the Current Context

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