I am trying to build a cross platform (Mac or iOS) class that needs to work with the native color classes (NSColor or UIColor). I need a way to detect whether I’m on OSX or iOS to change the class I use dynamically. What can I use to detect this?
Share
You can use TARGET_OS_*:
And