Rendering PDF vector asset as template image doesn't color properly below PDF native size

Number:rdar://49858605 Date Originated:2019-04-12
Status:Open Resolved:
Product:iOS Product Version:12.2
Classification:Bug Reproducible:Always
Core Graphics

When I include a PDF asset in my app and preserve vector information, then use CoreGraphics to render it as a template with custom colors, if I render below the PDF's native size, the coloring is only applied to part of the image

Steps to Reproduce:
Run attached app

Expected Results:
Both images show the silhouette in blue on a red background

Actual Results:
The small image (rendered below the PDF's native size) only draws part of the foreground in blue

iOS 11-12.2, Xcode 10.1-10.2

I've seen this issue on every device I've tested on.

As a workaround, I can render the image at the PDF's native size (72x72 in this case) and then the coloring is applied correctly.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!