let file = FileManager.groupPath.appendingPathComponent("test.pdf")
UIGraphicsBeginPDFContextToFile(file.path, .zero, nil)
UIGraphicsBeginPDFPageWithInfo(.init(x: 0, y: 0, width: 200, height: 200), nil)
"😘".draw(in: .init(origin: .zero, size: .init(width: 10, height: 10)), withAttributes: [NSAttributedString.Key.font: UIFont.systemFont(ofSize: 14)])
UIGraphicsEndPDFContext()
When I use the above code to draw emoji or images with transparent channels, there will be a crash in draw function!