SFSymbol & Style Sheet Support
SFSymbol
Adds experimental sfsymbol support to command line tool. SVGs can be converted to SFSymbol template which can be imported directly into Xcode.
$ swiftdraw alert_fill.svg --format sfsymbol
SwiftDraw automatically expands strokes (on macOS) and winds subpaths using the non zero rule to create a compatible symbol template.
Style Sheet
Adds style sheet support for simple selectors: class
, element
and id
.
.s {
stroke: darkgray;
stroke-width: 5 /* asd */;
fill-opacity: 0.3
}
#a {
fill: yellow;
}
.b {
fill: blue;
}
rect {
fill: pink;
}