---
title: "init(CGLContextObj:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nsopenglcontext/init(cglcontextobj:)-4jlgm"
---

# init(CGLContextObj:)

## Declaration

```swift
init?(CGLContextObj context: CGLContextObj)
```
