Created
September 29, 2020 23:03
-
-
Save nalexn/8556683146603a060f7f6cda0031d03c to your computer and use it in GitHub Desktop.
Article_009 https://nalexn.github.io/uikit-switfui/
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
import RxCombine | |
import RxCocoa | |
extension Driver { | |
var publisher: AnyPublisher<Element, Never> { | |
return self.asObservable() | |
.publisher | |
.catch { _ in Empty<Element, Never>() } | |
.eraseToAnyPublisher() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment