-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[Question][API Design] Is it ok to use sd_internalSetImageWithURL
in my project?
#3633
Comments
sd_internalSetImageWithURL
in my project?
The API has exists for 3 years. It still treated as public API and the only break time is v6.0.0 |
Maybe or may not. If you want "Do decode in the completion block", pay attention your decoding will block main queue. Because the completion block is always called at main queue. If you want to dispatch to async, this will break UIKit's render lifecycle, because the setImage does not happended on the same Runloop.
This cause a refresh and render flashing. |
If the case I talked above is your issue. Please, use Custom Coder instead for this. https://github.com/SDWebImage/SDWebImage/wiki/Advanced-Usage#custom-coder-420 |
We have some custom optimisations over a network layer, so I need to get |
Is there a timeline or schedule for v6.0.0, so we can plan ahead and estimate when to expect a possible API breakage? |
@dreampiggy thank you for a quick response! |
Seems no real timeline. Because the biggest blocking PR #2980 no body was doing... |
New Issue Checklist
Issue Info
Issue Description and Steps
Can I use the
UIImage+sd_internalSetImageWithURL
method in my project? The completion block's name isSDInternalCompletionBlock
. But the API is open and visible from my project (that integrates SDWebImage via SPM). Can I assume the API will stay as is or it could be broken at any moment?I need the
data
parameter so I can solve my problem. That's why I want to use the internalSet function.The text was updated successfully, but these errors were encountered: