[NSArray arrayWithObjects] stops working on 10.13. This is a bug caused by CocoaScript itself. Reference on: https://github.com/ccgus/CocoaScript/issues/48 . We can workaround this bug by using [NSArray arrayWithArray] instead.
Sketch changed API on layer.style().fill(). It now called layer.style.fills() and returns an array of fill objects. We should just use the first element of this array and call the CSSAttributeString method.
I would love to try this plug in but when export as zip no file is produced. I am running Sketch 47.1. Is there an updated plugin file for this at all? Many thanks - Emma
This PR contains two changes:
[NSArray arrayWithObjects]
stops working on 10.13. This is a bug caused by CocoaScript itself. Reference on: https://github.com/ccgus/CocoaScript/issues/48 . We can workaround this bug by using[NSArray arrayWithArray]
instead.layer.style().fill()
. It now calledlayer.style.fills()
and returns an array offill
objects. We should just use the first element of this array and call theCSSAttributeString
method.Tested locally and is able to export.