I am trying to create a CGContext in swift. It compiles but throws an error at runtime.
let colorSpace:CGColorSpace = CGColorSpaceCreateDeviceRGB() let conte
CGBitmapInfo.AlphaInfoMask is not a valid bitmap info.
Try setting CGBitmapInfo.AlphaLast or CGBitmapInfo.AlphaFirst.