Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Combine
- extension Publisher {
- @available(OSX 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
- public
- func dprint(_ prefix: String = "", to stream: TextOutputStream? = nil,line:Int = #line,file:String = #file) -> Publishers.Print<Self> {
- return print("🙋🏼♂️" + file.split(separator:"/").last!.description + " " + line.description + prefix)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement