Skip to content

Instantly share code, notes, and snippets.

@pixelspark
Created August 6, 2016 21:18
Show Gist options
  • Save pixelspark/dd3a2bee5368495137bb2e5c20b1aa18 to your computer and use it in GitHub Desktop.
Save pixelspark/dd3a2bee5368495137bb2e5c20b1aa18 to your computer and use it in GitHub Desktop.
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