---
title: graphicsPort
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsgraphicscontext/graphicsport
---

# graphicsPort

The low-level, platform-specific graphics context represented by the graphic port.

## Declaration

```swift
var graphicsPort: UnsafeMutableRawPointer { get }
```

## Discussion

Discussion In macOS, this is the Core Graphics context, a CGContext object (opaque type).

## See Also

### Managing the Current Context

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