Skip to content

Instantly share code, notes, and snippets.

@marianomike
Last active December 30, 2016 00:30
Show Gist options
  • Save marianomike/f084a7f2c73285ec1c1440c7c1abb545 to your computer and use it in GitHub Desktop.
Save marianomike/f084a7f2c73285ec1c1440c7c1abb545 to your computer and use it in GitHub Desktop.
//create a new style with fill and add it to the shared styles list
var style = MSStyle.alloc().init();
var fill = style.addStylePartOfType(0);
fill.color = colorFromString(colorValue);
sharedStyles.addSharedStyleWithName_firstInstance(colorName,style);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment