title: Draw NSString into CALayer
body: <p>I have to draw a NSString into a CALayer object for animation reasons. This is why I can't use CATextLayer.</p>
  
  <p>The problem is that I am not able to get the text visible on screen. 
  I know that I have to draw inside the graphicsContext, that is handed over within drawInContext(). I can't figure out how to create the NSGraphicsContext instance out of the CGContext instance. The graphicsContextWithGraphicsPort class method is deprecated. Is there any replacement for it?</p>
  
  <p>Note: I am using Swift.</p>