v2.1.3

@nitrada nitrada released this Feb 11, 2017 · 2 commits to master since this release

We added an example to demo.sketch showing how you can use several Conditional Actions in a single Symbol to swap a symbol based on the existence of certain data.

The symbol instance holds the following in its name:

#swapSymbol["{name}".length > 0, contact/name]
#swapSymbol["{email}".length > 0, contact/email]
#swapSymbol["{phone}".length > 0, contact/phone]
  • if there's data for {name}, it will swap the nested Symbol to 'contact/name', otherwise moves on
  • if there's data for {email}, it will swap the nested Symbol to 'contact/email', otherwise moves on
  • if there's data for {phone}, it will swap the nested Symbol to 'contact/phone', otherwise does nothing

This example shows that we need a better UI for attaching Conditional Actions to Layers/Symbols. Let us know if you have any ideas.

We're currently collecting a Library of usage examples of Sketch Data Populator. So if there's something you would like to share with the world, please let us know and we'll publish your JSON and Sketch Examples in this repository and if you like, also integrate it into the official demo file. More info in #80.

Downloads

v2.1.2

@nitrada nitrada released this Feb 7, 2017 · 5 commits to master since this release

  • swapSymbol now also works with top level Symbols (see demo.sketch – please re-download the file if you had downloaded it with v2.1.1 or v2.1.0)
  • populating a shape layer does not set its Pattern Fill Type to Fill anymore (fixes #77). we're thinking about offering a Conditional Action for setting the type based on data – so the name of image assets could drive the fill type

Downloads

v2.1.1

@nitrada nitrada released this Feb 6, 2017 · 12 commits to master since this release

Added 'Button' demo data and example to demo.sketch

Downloads

v2.1.0

@nitrada nitrada released this Feb 5, 2017 · 15 commits to master since this release

  • new Conditional Action swapSymbol: data driven swapping of (nested) symbols. check out the demo.sketch for an example!

  • new Filter lowercase

  • now works even better with Sketch Runner (custom icon + description for commands)


Downloads

v2.0.2

@nitrada nitrada released this Jan 29, 2017 · 26 commits to master since this release

Full support for nested symbol overrides + correctly clear symbols + …

…fix filter bug with spaces

Downloads

v2.0.1

@nitrada nitrada released this Jan 25, 2017 · 27 commits to master since this release

Fix for Sketch Version 42

Downloads

v2.0.0

@nitrada nitrada released this Jan 4, 2017 · 38 commits to master since this release

the read me now covers all available features of the plugin, now in version 2.0.0!

we will add some more documentation and a new demo.sketch anytime soon. also, there are some more things we’ll add for a 2.0.1 version later this month (see issues). this will also improve populating symbols tremendously.

Downloads

v2.0.0-beta

@nitrada nitrada released this Dec 30, 2016 · 45 commits to master since this release

As announced at the Design Tools Workshop in Malmö, here's a preview version of a fully refactored version of the plugin. More details will follow soon.

Please let us know if you run into any issues. Thank you.

Downloads

v1.7.3: Icon Font support

@nitrada nitrada released this Jul 25, 2016 · 63 commits to master since this release

Sketch Data Populator now works with Icon Fonts as described in this article: A Case for Iconfonts in Sketch.

As soon as you manually name a Text Layer eg. {myIcon}, Data Populator will always replace the full content of the Layer. If your Text Layer uses an Icon Font that has custom ligatures, this will replace your icon identifier with the desired icon glyph.

Please note that once your Text Layer is called {something} (with curly brackets), the trimming of that Text Layer doesn't work anymore to prevent Icons from disappearing. So if you want trimming for your {something} Text Layer, please rename it to something meaningful (and not containing curly brackets).

Downloads

v1.7.2: Works with Sketch Beta Version 39, bug fixes

@nitrada nitrada released this Jul 5, 2016 · 65 commits to master since this release

  • allow negative margins in grid options
  • replaced old scripting API calls
  • fixed populating images from URL (fixes #62)

Downloads