andrewcbancroft.com
Swift Alternative to Objective-C Macros - Andrew Bancroft
Without the ability to utilize pre-processor macros in Swift, we need a way to transition away from our former #define habits when working in Swift. The solution may be simpler than you think!