rodionovd
JS need to copy symbol to a new artboard using the blow code, then create symbol instance using the copy symbol; has it need to do the similar copy action in OC? and why does need to do this?
const copySymbol = symbol.duplicate();
const name = [copySymbol.name].join(' / ');
const masterArtboard = this.create.artboard({
name: name,
frame: copySymbol.frame,
parent: libDocument.pages[1],
layers: [],
flowStartPoint: true,
})ï¼›
const master = this.sketchLibrary.getSymbol(bizLibrary, name);
const symbolMaster = master.import();
const instance = symbolMaster.createNewInstance();
instance.parent = this.page;
tempMaster.remove();
masterArtboard.remove();
`