Coder Social home page Coder Social logo

bogdan-pr / sketch-to-xcode-assets-catalog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from geertwille/sketch-to-xcode-assets-catalog

0.0 1.0 0.0 31 KB

Export assets for iOS directly from Sketch into Xcodes assets catalog

License: GNU General Public License v3.0

JavaScript 100.00%

sketch-to-xcode-assets-catalog's Introduction

sketch-to-xcode-assets-catalog

Export assets for iOS directly from Sketch into Xcodes assets catalog

Installation

The basic procedure is the same regardless of which version of Sketch you're running, and how you installed it; simply check out this repository into your Sketch plugins directory and you're good to go.

The actual location of your Sketch plugins directory will vary, however, depending on how you installed Sketch:

  • If you bought Sketch 3 from the App Store, use the ~/Library/Containers/com.bohemiancoding.sketch3/Data/Library/Application Support/com.bohemiancoding.sketch3/Plugins directory
  • If you downloaded Sketch 3 from the Bohemian Coding site, use the ~/Library/Application Support/com.bohemiancoding.sketch3/Plugins directory

Once you have checked out the plugin repository into the relevant directory, you'll find the plugin functions under the Plugins menu in Sketch.

Layer naming convention

  • extension_device_filename
    • Extension: Can be "j" (jpg), "p" (png), or "v" (PDF vector).
    • Device: Can be "u" (universal), "m" (mobile) or "t" (tablet).

Valid examples

  • v_u_pepe-button
  • p_u_green-button
  • j_t_green_button
  • p_m_greenbutton
  • j_m_green-mobile-button

Assumptions

The plugin assumes you design your layouts in mdpi, which means 1px = 1dp

From now on this is configurable!

Shortcuts

  • Export: cmd + &

Adding Padding to slices

From now on you can manually decide how big you want your exported asset to be. Just include a slicelayer in the group of that asset and it will not use the size of the group but the size of that slicelayer...

Credits

This plugin is based on my other project sketch-export-assets. Now it's even more easier for our designers to deliver the assets to our iOS developers.

PDF vector export support by markiv.

sketch-to-xcode-assets-catalog's People

Contributors

markiv avatar gurpartap avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.