SketchAPI
SketchAPI copied to clipboard
Expose swatchID in fill.color and border.color
In order to know which swatch is linked to a fill or border color.
What you can do to get the swatchID is the following:
layer.style.fills[0].sketchObject.color().swatchID()