Software Dev

Conditional Compilation in Swift, Part 1 | Dave DeLong

When developing an app or a library, itโ€™s pretty common that at least once in the course of development, youโ€™ll need to conditionalize compilation of your code. Maybe youโ€™ll be accounting for a bug in the operating system where things that donโ€™t work quite the same on your device as they do on the simulator. Or perhaps youโ€™ll want to simply exclude code from your simulator builds because the simulator simply doesnโ€™t have that functionality (like invoking the camera).
โ€” Read on davedelong.com/blog/2018/07/25/conditional-compilation-in-swift-part-1/