I'm trying to do something like the attached image.
I thought this page would lead to the answer
http://www.informit.com/articles/article.aspx?p=2149190&seqNum=13
or
but converting objC to swift is troublesome. I can easily draw my arrows but getting the NSString to rotate then translate is problematic. It does weird things like drawing off screen, wrong angles, etc.
I've tried this and many variations
CGContextSaveGState(context)
CGContextRotateCTM(context, dTheta[i])
CGContextTranslateCTM(context, -s.sizeWithAttributes(attributes).width / 2.0, -radiusY )
s.drawAtPoint(CGPoint(x: x + xOffset*0.0 , y: y + yOffset*0.0 ), withAttributes: attributes)
//s.drawAtPoint(CGPointMake(0, 0), withAttributes: attributes)
CGContextRestoreGState(context)