exyte / Macaw

Powerful and easy-to-use vector graphics Swift library with SVG support
MIT License
6.01k stars 554 forks source link

Question about attributes #684

Open ClumsySmurf opened 4 years ago

ClumsySmurf commented 4 years ago

Is there anyway to get the list of CSS attributes on a particular node? I need to do something like element.attributes["class"], etc.

Thanks.

ystrot commented 4 years ago

Hi @ClumsySmurf,

Unfortunately, it's not possible right now. You can only find element by id using Node.tag property.