Sorry some updates: I can render simple image in the extension:
Image(systemName: "photo")
.resizable()
.scaledToFit()
.frame(width: 200, height: 200)
.foregroundColor(.blue)
but still failed to render a QR Code.
Can CoreImage be used in the ActivityReportExtension?
I have conducted a lot of experiments and found that the problem is
let context = CIContext()
The function failed to run until this line in ActivityReportExtension.
Sorry some updates: I can render simple image in the extension:
Image(systemName: "photo")
.resizable()
.scaledToFit()
.frame(width: 200, height: 200)
.foregroundColor(.blue)
but still failed to render a QR Code.
Can CoreImage be used in the ActivityReportExtension?
I have conducted a lot of experiments and found that the problem is
let context = CIContext()
The function failed to run until this line in ActivityReportExtension.