Skip to content

Instantly share code, notes, and snippets.

@matt-curtis
Last active March 11, 2016 18:45
Show Gist options
  • Save matt-curtis/f3566570a54bfc33a4fa to your computer and use it in GitHub Desktop.
Save matt-curtis/f3566570a54bfc33a4fa to your computer and use it in GitHub Desktop.
Export Layers in Sketch
var size = [MSExportSize sizeWithScale:4 name:"@4x" format:@"png"];
var exportRequests = [MSSliceMaker slicesFromExportableLayer:selection sizes:[ size ]];
[[MSSliceExporter new] exportSlices:exportRequests];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment