Zeplin automatically generates resources, including measurements, assets, and code snippets tailored to the platform needs.
Here's a list of features that will help you develop iOS projects:
- Measurements are in points.
- Assets are available as 3 PNGs (1x, 2x, 3x), PDFs, and SVGs.
☝️ To download SVG assets, make sure that you're using the latest Zeplin Mac app version. If the SVG is not showing up for an older design, re-exporting it should do the trick.
UIFontextensions on Swift or Objective-C are available for download from the project Styleguide.
NSAttributedStringcode snippets are generated from text layers with multiple attributes.
- When you first export assets into
.xcassetsdirectory of your project, images are added to the appropriate directories, and assets are added to your project. Next time you export another asset, you can simply select the project.
- Export a project color palette (from the project Styleguide) directly to your asset catalog (Xcode 9 and up). For more details, check out the blog post for this feature.