Created
March 6, 2018 13:05
-
-
Save Marcocanc/4ebb5a70f86e45f32a3e5ac04961bfc9 to your computer and use it in GitHub Desktop.
Kingfisher Reactive Extension
This file contains 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 ReactiveSwift | |
import ReactiveCocoa | |
import Kingfisher | |
extension Kingfisher: ReactiveExtensionsProvider { } | |
extension Reactive where Base == Kingfisher<UIImageView> { | |
var image: BindingTarget<URL?> { | |
return makeBindingTarget { | |
$0.setImage(with: $1) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment