INNER CODE UNIT · Swift

image

duguyihou/react-native-turbo-image · ios/CoreSVG.swift:47

    public func image() -> UIImage? {
        let ImageWithCGSVGDocument = unsafeBitCast(UIImage.self.method(for: ImageWithCGSVGDocumentSEL), to: ImageWithCGSVGDocument.self)
        let image = ImageWithCGSVGDocument(UIImage.self, ImageWithCGSVGDocumentSEL, document)
        return image
    }
    
    public func draw(in context: CGContext) {
        draw(in: context, size: size)
    }
    
    public func draw(in context: CGContext, size target: CGSize) {

        var target = target
        
        let ratio = (
            x: target.width / size.width,
            y: target.height / size.height
        )

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…