let svgURL = URL(string: partsDetail.groupImageUrl)! let hammock = UIView(SVGURL: svgURL) { (svgLayer) in svgLayer.fillColor = UIColor(red:0.0, green:0.0, blue:0.0, alpha:0.0).cgColor; svgLayer.resizeToFit(self.svgView.bounds) } self.svgView.addSubview(hammock)Also the colour of image is also bit different from original image
Some parts of image is missing
let svgURL = URL(string: partsDetail.groupImageUrl)! let hammock = UIView(SVGURL: svgURL) { (svgLayer) in svgLayer.fillColor = UIColor(red:0.0, green:0.0, blue:0.0, alpha:0.0).cgColor; svgLayer.resizeToFit(self.svgView.bounds) } self.svgView.addSubview(hammock)
Also the colour of image is also bit different from original image