Skip to content

Support for distinct layers within icons? #19

@tinder-darraghburke

Description

@tinder-darraghburke

Hi! Excellent work with SwiftDraw, this is a very cool project!

I just had a quick question. I have an icon which consists of multiple layers that I'd like to be able to color separately using multicolor or hierarchical mode. As I understand it, SFSymbols uses the class attribute of each element to determine its layer. If I give a the following class:

monochrome-0 multicolor-0:systemBlueColor hierarchical-0:primary

It will be counted as a distinct layer. However, when I tried adding these classes to my base .svg file, and then running it through SwiftDraw, it appears that the class attribute is stripped in the final output, which effectively flattens the asset into a single layer. Is there any way to get it to pass through the class attribute, or is there some other method to separate out the layers of my asset?

Thanks so much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions