CGContextKanvas

constructor(ptr: CPointerVarOf<<Error class: unknown class>>, width: Double, height: Double)

When calling from Swift, use &yourCgContext.


constructor(unmanagedContext: <Error class: unknown class>, width: Double, height: Double)

When calling from Swift, pass Unmanaged.passUnretained/passRetained(yourCgContext)