I would like to globally ignore all println() calls in my Swift code if I am not in a Debug build. I can\'t find any robust step by step instructions for this a
println()
This works for me (add this as a global function in the project)
func print(_ items: Any...) { #if DEBUG Swift.print(items[0]) #endif }