Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import Combine
  2. extension Publisher {
  3. @available(OSX 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
  4. public
  5. func dprint(_ prefix: String = "", to stream: TextOutputStream? = nil,line:Int = #line,file:String = #file) -> Publishers.Print<Self> {
  6. return print("🙋🏼‍♂️" + file.split(separator:"/").last!.description + " " + line.description + prefix)
  7. }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement