SketchAPI icon indicating copy to clipboard operation
SketchAPI copied to clipboard

Expose swatchID in fill.color and border.color

Open Pausansol opened this issue 4 years ago • 1 comments

In order to know which swatch is linked to a fill or border color.

Pausansol avatar Oct 18 '20 08:10 Pausansol

What you can do to get the swatchID is the following: layer.style.fills[0].sketchObject.color().swatchID()

himynameisubik avatar Aug 13 '21 12:08 himynameisubik