Yes. Correct. The cuestión here is that in swift, all core graphics objects and strucks are CG(CGPoint, CGSize, CGFloat, CGColor, etc), and all drawXXXXmethos use only CG...objects, types and structs. I asume (incorrectly) that drawString... uses a CGColor, but not, it use a NSColor.
Thanks. :)
Topic:
Programming Languages
SubTopic:
Swift
Tags: