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.
Post
Replies
Boosts
Views
Activity
Update: Already works, was an error in the declaration of my func by personal fatigue. Sorry by that. :(
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. :)