Posts

Post marked as solved
2 Replies
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. :)
Post not yet marked as solved
5 Replies
In Xcode debug area I can reed: <CGColor 0x600002617de0> [<CGColorSpace 0x600002614600> (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; sRGB IEC61966-2.1)] ( 0.176471 0.176471 0.176471 1 ) but in Xcode Variables area: color = (NSObject) 0x0000600002617de0 The desired color it not drawing.