I am trying to create a CGContext in swift. It compiles but throws an error at runtime. let colorSpace:CGColorSpace = …