-
Notifications
You must be signed in to change notification settings - Fork 8
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
Support for URL instead of NSURL #18
Comments
This is limit in current Pure Objective-C implementation... That |
Can the |
@dreampiggy yes, let asset: PHAsset
let photosURL = NSURL.sd_URL(with: asset)
cell.imageView.sd_setImage(with: photosURL as URL?, placeholderImage: nil) /// this works |
I'll update readme now. For better Swift support, let me find some other way, or provide something like SDWebImage/SDWebImage#2980 Provide this repo as an Objective-C/Swift Mixed project. |
New Feature Request Checklist
Feature Request Description
Currently, you make a
NSURL
fromPHAsset
like this:However,
sd_setImage(with:
takes aURL
, notNSURL
.I would like to be able to get a
URL
fromPHAsset
, something like this:This would avoid the error, and I think URLs are safer than NSURLs.
The text was updated successfully, but these errors were encountered: