title: Draw string with an AffineTransform in Swift 3
body: <p>I am doing some drawing in Swift 3.0 in OS X.</p>
  
  <p>The transform the drawing I am using an AffineTransform from the Foundation API and the NSBezierPath.transform command.</p>
  
  <p>I am trying to draw strings now at the transformed coordinates.</p>
  
  <p>What I would really like is a function to draw a string using: </p>
  
  <pre><code>public extension NSString {
  
      internal func draw( at: CGPoint, withAttributes attrs: [String : AnyObject], withTransform transform: AffineTransform) {
  
          // What do do here??
          draw( at: CGPoint(x: at.x, y: -at.y), withAttributes: attrs)
      }
  }
  </code></pre>
  
  <p>Is there a way to go from an AffineTransform to a CGAffineTransform?</p>
  
  <p>Is there a way to transform a CGPoint to a new point without first putting it in a BezierPath and then using the transform fucntion?</p>