Created
August 6, 2016 21:18
-
-
Save pixelspark/dd3a2bee5368495137bb2e5c20b1aa18 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public func trace(_ message: String, file: StaticString = #file, line: UInt = #line) { | |
#if DEBUG | |
DispatchQueue.main.async { | |
print(message) | |
} | |
#endif | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment