Search the Community
Showing results for tags 'xcassets'.
-
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