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

The svg image is not fully displayed #42

Open
dexkum-2myzZy-jipzid opened this issue Dec 1, 2022 · 1 comment
Open

The svg image is not fully displayed #42

dexkum-2myzZy-jipzid opened this issue Dec 1, 2022 · 1 comment

Comments

@dexkum-2myzZy-jipzid
Copy link

dexkum-2myzZy-jipzid commented Dec 1, 2022

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

@YanVetrov
Copy link

same issue

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