zisoft Posted January 27, 2018 Share Posted January 27, 2018 Xcode now allows imagesets to be in vector (pdf) format with a single scale. When checking "Preserve Vector Data" (see screenshot) the image is scaled by Xcode to any required size so there is no need to create lots of images in @1x,@2x,@3x for all required sizes. This is a great new feature of Xcode. In Affinity Designer I create a slice with output format pdf (for export) and choose the builder "Xcode JSON Apple Universal Icon". The JSON file gets the following content: { "images" : [ { "idiom" : "universal", "filename" : "Gear.pdf", "scale" : "x" } ], "info" : { "version" : 1, "author" : "xcode" } } But what Xcode expects for this type of imageset is this: { "images" : [ { "idiom" : "universal", "filename" : "Gear.pdf" } ], "info" : { "version" : 1, "author" : "xcode" }, "properties" : { "preserves-vector-representation" : true } } So no "scale" and an additional property "preserves-vector-representation". Is there any way to customize the output of the builder JSON file? Thanks, Mario Quote Link to comment Share on other sites More sharing options...
v_kyr Posted January 27, 2018 Share Posted January 27, 2018 No AFAIK you can't customize the JSON section/key/value attributes yet. Quote ☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan ☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2 Link to comment Share on other sites More sharing options...
zisoft Posted January 30, 2018 Author Share Posted January 30, 2018 Thank you for the info. I have now written an Automator Script which does the conversion with a single click as a service. Mario v_kyr 1 Quote Link to comment Share on other sites More sharing options...
v_kyr Posted January 30, 2018 Share Posted January 30, 2018 Jip this way you have most flexibility over the whole contents generation and can customize it to your needs. - Well done! Quote ☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan ☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2 Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.