SDWebImageSVGCoder icon indicating copy to clipboard operation
SDWebImageSVGCoder copied to clipboard

The svg image is not fully displayed

Open dexkum-2myzZy-jipzid opened this issue 2 years ago • 1 comments

I want to display this svg, but it's not fully displayed. This svg contains two flag pngs which are not fully displayed. Here is my code

func sdwebimage(){
        // register coder, on AppDelegate
        let SVGCoder = SDImageSVGCoder.shared
        SDImageCodersManager.shared.addCoder(SVGCoder)
        // load SVG url
        let imageView: UIImageView = UIImageView(frame:CGRect(x: 0, y: 100, width: 318, height: 318))
        let urlStr = "https://izfetdisq5mm63fsdwunhrsidlqbx5ul6mei74o27oqzrdhhhuza.arweave.net/RkpJjRKHWM9ssh2o08ZIGuAb9ovzCI_x2vuhmIznPTI"
        let url = URL(string: urlStr)
        let bitmapSize = CGSize(width: 318, height: 318)
        imageView.sd_setImage(with: url, placeholderImage: nil, options: [], context: [.imageThumbnailPixelSize : bitmapSize])
        //        imageView.sd_setImage(with: url, placeholderImage: nil, options: [], context: [ : ])
        self.view.addSubview(imageView)
}
Screenshot 2022-12-01 at 15 51 58

dexkum-2myzZy-jipzid avatar Dec 01 '22 07:12 dexkum-2myzZy-jipzid

same issue

YanVetrov avatar Jul 17 '23 18:07 YanVetrov