iOS

Swift Journey Log

Using Preprocessor Macros: func println(object: Any) { #if DEBUG Swift.println(object) #endif } And just set “DEBUG” as a custom flag for the Swift compiler (Build Settings –> Swift Compiler –> Custom Flags)