Questions tagged [sdwebimage]
SDWebImage is a simple image library for iOS which provides caching and an easy way to load remote images asynchronously into UIImageViews.
884
questions
0
votes
0
answers
6
views
ImageRenderer not loading WebImage in SwiftUI
I am trying to capture a snapshot of a view. Everything is working fine but when I try to load an image from a URL using the SDWebImageView library, it's simply not loading the image.
This is my code:
...
0
votes
0
answers
17
views
SDWebImage can't write to disk / read from disk
new to SDWebImage, so forgive me if anything big was missed and causing this issue.
POD
pod 'SDWebImage', '~> 5.11.0'
pod 'SDWebImageWebPCoder', '~> 0.8.5'
AppDelegate
SDImageLoadersManager....
0
votes
1
answer
37
views
Swift ImageView's top Constraints looks wrong and covered its superView?
I want to achieve a "show more" effect in my view. The desired effect is as follows(sorry for my poor painting), the view's height is set to a specific value at first(such as 304), and when ...
0
votes
1
answer
69
views
How to pass API image from Table View into another View Controller using didselectrowat
I am a newbie in Swift and I am trying to build an app in which I retrieve plant images and information from this api "https://rapidapi.com/mnai01/api/house-plants2".
I managed to implement ...
-1
votes
1
answer
82
views
Does SDWebImage support webp images without SDWebImageWebPCoder?
I was able to download and display Webp images without SDWebImageWebPCoder using SDWebImage 5.13.4. So what is the purpose of SDWebImageWebPCoder?
Does SDWebImage already support Webp or am I wrong ...
0
votes
0
answers
18
views
Difference between SDWebImageDownloader and SDWebImageManager.shared.imageLoader in SDWebImage5.x?
I want to know what is the difference between using SDWebImageDownLoader and SDWebImageManager.shared.imageLoader. Recently I update SdWebImage from 4.x to 5.14.3, and I found that SDWebImage.shared()....
2
votes
1
answer
453
views
Download SVG Image in iOS Swift
I'm working on a project which I'm getting data from API and in that API I'm getting url for image. but these images are not in PNG,JPEG or JPG formats. They are SVG(Scalable Vector Graphic) images. ...
0
votes
0
answers
61
views
How to force redraw element in swiftUI
VStack {
WebImage(url: URL(string: (vm.user?.profilePictureUrl ?? "")))
.resizable()
.scaledToFill()
.frame(width:...
0
votes
1
answer
41
views
How do you load an external image with SDWebImage?
I'm trying to use an external image as a tab bar button. I've seen this with few apps so I thought I'd give it a go.
HackingWithWift mentioned using SDWebImage
import SDWebImage
import UIKit
class ...
0
votes
0
answers
53
views
How to resize image already saved in cache using SDWebImage?
I would like to be able to do 2 things:
Update the cached image with a new size
Catch a new image fetched from the cloud and resize it before saving it in cache.
I guess that if I am able to to #1, ...
0
votes
0
answers
90
views
SwiftUI Image Saving Fails During .WEBP Image Conversion
My code converts the output .WEBP image from an URL on user's screen, and saves it to iOS photo library when the user clicks the download button.
The download button opens up the share sheet, and user ...
0
votes
3
answers
149
views
How to display the image from tableViewCell downloaded from URL using SDWebImage in the detailViewController?
My app downloads images from firebase and displays them in the tableViewController cells, also I need the AudioPlayerViewController to display exactly same image of the selected row/cell. For now in ...
-1
votes
1
answer
833
views
Flutter Xcode Build Failure: no visible @interface for 'UIImage' declares the selector 'imageByPreparingForDisplay'
ARC Semantic Issue: no visible @interface for 'UIImage' declares the selector 'imageByPreparingForDisplay'
So I have been going through the difficult task of getting my client's Flutter app over to ...
0
votes
1
answer
79
views
What do the cacheType values returned in SDWebImage sd_setImage mean?
I've added cached images to UIImageviews using sd_setImage() in UITablelViewCells, as follows.
imageView.sd_setImage(with: url, placeholderImage: defaultImage) { image, error, cacheType, cacheURL in
}...
0
votes
1
answer
78
views
How to display image in AudioPlayerViewController?
This is the TableViewController with the list of the audios. It successfully grabs all data from firebase and displays in a table. I include a screenshot
import UIKit
import AVKit
import AVFoundation
...
0
votes
0
answers
189
views
How to reload UIImage loaded asynchronously with SDWebImage in UITableView cell
The problem is that I don't know how to refresh images loaded asynchronously from url with SDWebImage.
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> ...
0
votes
2
answers
463
views
Can't build on iOS - SDWebImage: ARC Semantic Issue
I have a Flutter project that works fine on Android, but I can't run it on iOS. The build always fails.
SDWebImage shows an Arc Semantic Issue.
/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCoderHelper....
0
votes
0
answers
35
views
Different behavior when Decode Image on iOS
ImageType
DecodeAction
DecodeResult(MemoryGraph&Allocations)
JPEG
ImageIO:CGImageSourceCreateImageAtIndex
VM: IOSurface - 5MB in current process
PNG
ImageIO:CGImageSourceCreateImageAtIndex
VM: ...
0
votes
0
answers
135
views
Using a custom cache in SDWebImage
I have an app that presents a bunch of thumbnail images and they are automatically cached using:
WebImage(url: URL(string: currentWallpaper.thumbnailURL), options: SDWebImageOptions.retryFailed)
This ...
0
votes
1
answer
262
views
How do you stop the image overlapping the UIImageView
I use SDWebImage do add the image to my UIImageView
if let url = URL(string: user.imageLocation) {
cell.userImageView.borderColor = UIColor.white
cell.userImageView.sd_setImage(with: ...
0
votes
0
answers
45
views
How to store an array of images from SDWebImage
_imags = [[NSMutableArray alloc] initWithObjects:
sd_setImageWithURL: [NSURL URLWithString: @"https://api.androidhive.info/json/movies/1.jpg"]
placeholderImage: [UIImage imageNamed: ...
1
vote
0
answers
757
views
SDWebImageSwiftUI - Image Loading and Caching
I'm working on developing an image heavy iOS app:
Users upload images to the app, all of which are then added to a cloud storage bucket. A database entry is also created, which contains the url to ...
1
vote
0
answers
43
views
Xamarin iOS: How to fade in an image using SDWebImage
I'm using Xamarin.SDWebImage 4.4.7 from Microsoft and would like to fade in an image. I know that the original library has built-in image transitions:
imageView.sd_imageTransition = .fade
let url = ...
0
votes
0
answers
563
views
SDWebImage SwiftUI Animated GIF not looping?
Basically certain gifs just aren't looping under this framework. It will run once then never again on appear. This happens on both simulator and previews. Oddly enough this problem only occurs with ...
0
votes
0
answers
61
views
UICollectionView Cell flick with it's previous cell while scrolling horizontally, using SDWebImage
Here is what happened:
There are 4 cells that fully displayed and 2 cells are half displayed. All of their image is downloaded and displayed. But when I scroll down, most of the cell will be flicked ...
0
votes
0
answers
110
views
SDWebImage Value of type 'UIImageView' has no member 'sd_cancelCurrentAnimationImagesLoad'
How to Cancel Current Animation Images load using SDWebImage 5.12.3.
imageView.sd_cancelCurrentAnimationImagesLoad()
0
votes
0
answers
73
views
Missing methods when upgrading to SDWebImage 5
I'm upgrading a swift project from SDWebImage 3.7.5 to 5.12.3 and I have problems with a few methods which are not working anymore:
SDWebImageManager.shared.cachedImageExists(for:)
SDWebImageManager....
2
votes
0
answers
216
views
Cannot assign value of type 'SDWebImageActivityIndicator' to type 'ST_SDWebImageIndicator?
I have multiple flavours targets in my Xcode project. I am also using SDWebImage in my app. Everything was working fine until now. I have upgraded SDWebImage to 5.12.3 from 5.10.0. And now I am ...
1
vote
1
answer
397
views
Is there a way to set up downsampling option when fetching an image with SDWebImage?
This is how I set images to UIImageView from a web url:
import UIKit
extension UIImageView {
private var storage: Storageable {
Assembler.shared.resolve(Storageable.self)!
}
...
0
votes
1
answer
166
views
Ios images and labels keep loading while scrolling
I'm writing a demo to show user's tweets.
The question is:
Every time I scroll to the bottom and then scroll back, the tweet's images and comments are reloaded, even the style became mess up. I know ...
1
vote
2
answers
1k
views
SDWebImageSwiftUI - How to load a fallback image if the first one fails?
I need to grab another image in case the initial one fails and Im having a hard time figuring how to do this with SDWebImageSwiftUI.
Any clue as to how to do this?
0
votes
1
answer
230
views
iOS UITableViewCell with UIImageView display image outside the view
I have a UITableViewCell which an UIImageView in it, the image placeholder works very fine but when use SDWebImage to get image from url with an actual data, the image will display outside the ...
4
votes
3
answers
15k
views
Error 'compile swift source files (arm64)' when building project with Xcode 13
NOTE: I know that there are many answers related to these questions, but I've tried each of them, and when I am not able to resolve it with those, I am posting question here. Hence, I request you not ...
0
votes
2
answers
850
views
How to know Image file Size when using SDWebImages?
I'm using SDWebImages and set image using imageView.sd_setImage(),
now I want to know what is size of image I downloaded.
I want size in height, width and total memory it occupy.
1
vote
1
answer
692
views
How can I save SDWebImageSwiftUI to Photos in Swift?
I've been searching for hours now on how to save to Photos a SwiftUI SDWebImage
ForEach(self.moodboardImages, id: \.self) { imageName in
WebImage(url: URL(string: imageName....
1
vote
2
answers
550
views
Using web image as MapKit annotation (with image edit before)
I want to use web image as annotation on Apple Map. In other parts of my app I'm using SDWebImageSwiftUI, so I'd like to use SDWebImage also here. I know there is a SDWebImage plugin for MapKit, but ...
0
votes
1
answer
532
views
Why am I getting the error Value of type 'UIImageView' has no member 'sd_setShowActivityIndicatorView'
I am trying to show a loader while my images are being downloaded using the SDWebImage library. The wiki page says it should be done like so:
imageView.sd_setShowActivityIndicatorView(true)
However ...
0
votes
2
answers
194
views
SDWebImage not works with Spanish Alphabets into Image name iOS Swift
I am using SDWebImage latest updated version & it works good so far. Recently I found one issue which started causing the crash issue into my Application.
I observed that if Image URL having a ...
0
votes
1
answer
87
views
How can I combine these two functions?
I am using SDWebImageSwiftUI to display images but need to supply an image of type binding for my ImageView structs within a ForEach loop.
How do I do this using SDWebImage?
Thank you!
struct ...
0
votes
0
answers
99
views
SwiftUI - Getting the first index of a JSON request, Fatal error: Index out of range
Im attempting to get the property of the first object in an array from a JSON request using WebImage. How can I receive the first value of the JSON when loaded and then replace it with a placeholder ...
0
votes
1
answer
509
views
WebImage not updating the View - SwiftUI (Xcode 12)
My problem is that when I change my observed objects string property to another value, it updates the JSON Image values printing out the updated values(Using the Unsplash API), but the WebImage (from ...
0
votes
2
answers
72
views
Download image from Firebase with SDWebImage - Swift Error "Unexpected non-void return value in void function"
I'm a beginner in Swift and I'm trying to create a function which returns an Animated Image thanks to SDWebImage.
The path of the Image is known and stored in Firestore in an array.
So the function ...
2
votes
0
answers
41
views
image view loads old image from url even when its updated
i am using SDWebimageView to load image from imageview , when user update image it doesn't reflect on image view and load old image
if let image = SessionManager.shared.getUser()?.profilePic {
...
0
votes
1
answer
261
views
SBWebImage build-in view indicator loading animation doesn't show, SWIFT
I am trying to get an loading animation for when an image is loading before being displayed on the view. I am using SDWebImage and I've looked at their documentation on GitHub and followed the ...
1
vote
0
answers
246
views
Issues loading Images Xcode Swift 5 (SDWebImage/Backblaze used)
i am encountering a weird issue.
Short version
We have an app in the appstore for multiple months now with a photo feed. We have plenty of users (99,9% in Europe, mostly Central Europe).
using ...
1
vote
0
answers
108
views
SDWebImage Throwing 'Too Many Arguments' Error
When I run the app on simulator, it runs perfect. When I try to Archive to upload to AppStore I get error messages on SDWebImageManager that says SDWebImageManager.m:244:22: Too many arguments to ...
1
vote
1
answer
256
views
WatchOS: SDWebImageLottieCoder load new animation while watch app is running
I'm following this tutorial to use Lottie animations library on WatchOS. It's working until I try to change the animation while the app is running. Even though I change it, the animation stays the ...
0
votes
1
answer
279
views
Bar button item not appearing with image
I am trying to set a profile picture as a bar button item. The picture comes from a URL using SDWebImage. When I run the app the item shows as a white box and all the other right bar button items ...
0
votes
0
answers
102
views
SDWebImage Image Load Transition not working
I have tried following the instructions on the SDWebImage to enable an image to fade-in once loaded using their example:
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView ...
1
vote
1
answer
699
views
collectionView cell Image change when scrolling - swift - programmatically
I need to load an ImageView inside UIcollectionViewcell using a URL that I pass during initialisation:
func configureCellWith(messageModel : MessageModel){
guard let url = URL(string: ...