sdwebimage with invalid ssl certificates iOS swift

Problem:

I want to load image using sdweb for invalid ssl certificate from my server.

Solution: 

Instead of "Uiimage" use your placeholder image


        self.appImage.sd_setBackgroundImage(with: URL(string: urlString), for: .normal, placeholderImage: "uiimage",options: [SDWebImageOptions.handleCookies,SDWebImageOptions.allowInvalidSSLCertificates], progress: { time, times, url in

            print("image",url)

        })


Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Saved Image in document directory and save path in coredata not able to fetch the image file iOS swift