Xcode 14 pdf asset background is ignored

After upgrading to Xcode 14 I face weird issue with PDF assets. PNGs generated from PDF assets have transparent background instead of fancy gradient. Issue is present in both Xcode 14.0.1 and 14.1

See attached images

Post not yet marked as solved Up vote post of Nikita_DDY Down vote post of Nikita_DDY
1.3k views
  • PDF contains "angular gradient" element from Figma

Add a Comment

Replies

We are running into the same thing, we have an icon with a gradient that is turning invisible in Xcode 14. Going back to Xcode 13.4.1 resolves the issue for us but hopefully someone from Apple can chime in.

Edit: It took trying multiple conversion websites but we were able to convert from PDF to SVG and are now seeing the asset as expected when deploying from Xcode 14. However, I still believe Apple should look into the bug causing this because many developers may not notice rarely-seen assets going missing.

  • if someone faces this: we were facing the issue even with SVGs (and anyway, with PDFs). we reverted to using PNG images of 2x and 3x for more reliable result.

Add a Comment