SpriteKit Function Reference
The SpriteKit Framework defines one macro to simplify cross-platform development.
A macro that expands to a platform-specific color class.
#if TARGET_OS_IPHONE #define SKColor UIColor #else #define SKColor NSColor #endif
All SpriteKit methods that work with colors accept
SKColorobjects as parameters. On iOS, this resolves to the
UIColorclass. On OS X, this resolves to the
Sprite Kit works only with solid colors. For best results, use the preset colors provided by the platform class or a custom color defined in the RGBA device color space.
Available in iOS 7.0 and later