
import Haneke

class ImageView: UIImageView {
    
    var setImageCompletionBlock: (() -> ())?
    
    override var image: UIImage? {
        didSet {
            setImageCompletionBlock?()
        }
    }
    
    func setImageAsynchronously(url: URL, completion: (() -> ())?) {
        setImageCompletionBlock = completion
        hnk_setImage(from: url)
    }
    
    
}


import Haneke

class ImageView: UIImageView {
    
    var setImageCompletionBlock: (() -> ())?
    
    override var image: UIImage? {
        didSet {
            setImageCompletionBlock?()
            setImageCompletionBlock = nil
        }
    }
    
    func setImageAsynchronously(url: URL, completion: (() -> ())?) {
        setImageCompletionBlock = completion
        hnk_setImage(from: url)
    }
    
    
}

Remove completion block after setting image asyncronously
Remove completion block after setting image asyncronously
