添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check List

Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.

  • I have read the wiki page and cheat sheet , but there is no information I need.
  • I have searched in existing issues , but did not find a same one.
  • I want to report a problem instead of asking a question. It'd better to use kingfisher tag in Stack Overflow to ask a question.
  • Issue Description

    When I try to use
    button.kf.setImage(with: url, for: .normal, placeholder: nil, options: nil, progressBlock: nil, completionHandler: nil) on my UIButton it only shows blue colour image instead of loading actual image

    Reproduce

    I am attaching sample code please run and check.

    Other Comment

    XCode 9.2
    Swift 4.0
    Kingfisher 4.6.2

    [Add anything else here]

    KFOnUIButton.zip

    Button images are rendered as template by default. You may want to use the original version. Try something like this:

    let modifier = AnyImageModifier { return $0.withRenderingMode(.alwaysOriginal) }
    button.kf.setImage(with: url, for: .normal, placeholder: nil, options: [.imageModifier(modifier)], progressBlock: nil, completionHandler: nil)