Skip to content

Instantly share code, notes, and snippets.

View AvdLee's full-sized avatar
👇
avanderlee.com

Antoine van der Lee AvdLee

👇
avanderlee.com
View GitHub Profile
@AvdLee
AvdLee / Kingfisher+RAC.swift
Created May 8, 2016 18:56
RAC Extension for ReactiveCocoa
import Kingfisher
import ReactiveCocoa
import enum Result.NoError
extension KingfisherManager {
func rac_retrieveImageWithURL(URL: NSURL,
optionsInfo: KingfisherOptionsInfo?,
progressBlock: DownloadProgressBlock?) -> SignalProducer<(image: UIImage?, cacheType: CacheType, imageURL: NSURL?), NSError> {
return SignalProducer { observer, disposable in