Core Graphics Tutorial: Lines, Rectangles, and Gradients |

Learn how to use Core Graphics to draw lines, rectangles, and gradients — starting by beautifying a table view!

This is a companion discussion topic for the original entry at

Hi and thank you for the tutorial!

I have a general question relating to Core Graphics, maybe you can help:
Would you happen to know, how one can construct a color space (CGColorSpace) that has colorSpace.model = .deviceN? There seems to be no initialiser for this… Thank you for any comments on this!