Sketch already supports drag and drop SVG files. However by importing SVG files via this plugin, you can update the imported SVG layer if the external source file changed.
Download Sketch-Linked-SVG & unzip it.
Double click Linked SVG.sketchplugin
to install the Plugin.
-
Update Linked SVGs
-- reload all SVG layers marked with@@
-
Import Linked SVG
-- import external SVG file into a SVG layer and mark the layer with@@
follow by the relative location of the external SVG file. -
Export SVG
-- save the selected layers into a SVG file. -
Open SVG
-- open external SVG file in apage
. -
Save SVG
-- save all layers in the currentpage
into a SVG file.
This plugin eventually enables you to use SVG as the target file format for Sketch, and output consistent and concise SVG code. If you plan to manage a SVG based project on Github, this plugin will help you reduce merge conflict greatly or make it easy to resolve.
Big thanks to Place-Linked-Bitmap for inspirations and SVGO Compressor for providing the compression methods and Sketch-Headers for how to use undocumented Sketch functionality.