
Schwartz can generate source code from vector-based graphics. The main advantage of this tool is that comes with multiple built-in templates with support of such languages as Objective-C, C, Swift, SVG and JavaScript. Moreover, you can add templates for other languages. Although the application is not difficult to use, it is a shame that its help documentation is quite limited.
The application’s interface is quite similar to that of a standard vector-based drawing tool. You can start by drawing your composition. For this purpose, there is a toolbar on the left side, which lets you create various types of objects, like rectangles, lines, ovals, triangles, stars and arrows. Fortunately, the app supports organizing them in layers. Besides, there is the Inspector panel on the right, which you can use to enter the exact parameters for each object. It is great that you can work with multiple pages as well.
After you have finished editing your graphic, it is time to generate the code, but you need to pick one of the available templates before that. The code is created in practically no time; then, you can simply copy it to the clipboard and later paste it to the desired developer tool.
All in all, it is great that an application like Schwartz is available to save you from the painstaking effort of manually writing the code. The product is shareware, so it can be tried at no cost.
v1.8 [Oct 23, 2017]
– NEW: Custom Properties. In the Inspector sidebar, you'll find a new "Custom Properties" palette. Here, you can add custom name/value pairs to any selected object on the canvas. Then, you can access these properties in your Schwartz Templates by looping through `object.customProperties` or `object.customPropertiesDictionary`. Each custom property has a `name` and `value` property containing the values you entered in the sidebar palette.
– NEW: Export Selection - Main Menu > File > Export Selection.
– NEW: 10% Zoom Scale option.
– FIX: Control-clicking objects on the Canvas for activating the context menu now works properly again.
– FIX: Improved canvas rendering performance.