Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

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

Placeholder image not working with swift 3 #510

Closed
wieseljonas opened this issue Nov 13, 2016 · 2 comments
Closed

Placeholder image not working with swift 3 #510

wieseljonas opened this issue Nov 13, 2016 · 2 comments

Comments

@wieseljonas
Copy link

wieseljonas commented Nov 13, 2016

Even when setting url to nil it doesn't load why?

cellImage.kf.setImage(with: nil,
                                  placeholder: #imageLiteral(resourceName: "no photo"),
                                  options: [.transition(.fade(1))],
                                  progressBlock: nil,
                                  completionHandler: nil)
@onevcat
Copy link
Owner

onevcat commented Nov 14, 2016

It will not work only when set url to nil (there should be nothing changed when using an non-nil url)
This might be caused by an internal change of #503.

I will give it a fix to load placeholder for nil resource later.

@onevcat
Copy link
Owner

onevcat commented Nov 14, 2016

Should be fixed in 3.2.1

@onevcat onevcat closed this as completed Nov 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants