With the latests swift development snapshot (2016-02-05) a deprecation warning is given for CGPathRef.
When applying the suggested change and one uses CGPath, that results in an error:
Use of undeclared type 'CGPath'
CGImageRef -> CGImage works fine though.
Since the Swift bug tracker seems to be down (at least for me) I’m posting this here.
(What would be the appropriate place? I couldn’t find a PR that is related to this.)