I know Swift has preprocessor directives that check the OS :
#if os(iOS)
...
#elseif os(OSX)
...
#endif
But, after searching online, I've found nothing to check is the OS is Ubuntu. Is there a way of doing that ? I know swift has only recently been working on Ubuntu, so I realize that there may not be a way as of this writing.