CGSVGDocument) -> UIImage if let imp = (UIImage.self as AnyObject).method(for: sel) { let makeImage = unsafeBitCast(imp, to: IMPFn.self) let image = makeImage(UIImage.self, sel, document) ... } J04Ͱ47(ը૾Λѻ͏
(CFData?, CFDictionary?) -> Unmanaged<CGSVGDocument>? let p = CFBundleGetFunctionPointerForName(cf, "CGSVGDocumentCreateFromData" as CFString) guard let p else { return } let CGSVGDocumentCreateFromData: CreateFn = unsafeBitCast(p, to: CreateFn.self) EMPQFOEMTZN#VOEMF"1*
guard let p = dlsym( h, "CGContextDrawSVGDocument" ) else { fatalError(String(cString: dlerror())) } let CGContextDrawSVGDocument = unsafeBitCast(p, to: DrawFn.self)