Skip to content

SFSymbol & Style Sheet Support

Compare
Choose a tag to compare
@swhitty swhitty released this 21 Aug 23:21
· 126 commits to main since this release
9d61888

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;
}