I am trying to use the Settings API to set a value on an Override layer. I am able to set a value on a regular Layer like this:
let myLayer = document.getLayerWithID(layerID);
Settings.setLayerSettingForKey(myLayer, 'myKey', 'Some Text');
// -> WORKS
But when I try the same with an Override it doesn't work:
let symbolInstance = document.getLayerWithID(symbolInstanceID);
Settings.setLayerSettingForKey(symbolInstance.overrides, 'myKey', 'Some value');
// -> ERROR
The error I get is:
Error: An Obj-C exception occurred.
nativeException: -[__NSCFString userInfo]: unrecognized selector sent to instance 0x600010cdfdb0
(Note: there is definitely an override object at symbolInstance.overrides, as I can print it to console)
Can anyone let me know what I'm doing wrong? The API docs say you can set a Setting for both Layers and Overrides.
Thanks in advance!