INNER CODE UNIT · Swift

draw

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

    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
        )
        
        let rect = (
            document: CGRect(origin: .zero, size: size), ()
        )

        let scale: (x: CGFloat, y: CGFloat)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…