mchoe / SwiftSVG

A simple, performant, and lightweight SVG parser
Other
1.92k stars 229 forks source link

parsing the groups #95

Open pavelgubarev opened 6 years ago

pavelgubarev commented 6 years ago

Hello!

Thank you again for your wonderful library. I use it extensively in my current project.

Is there a way to iterate through file and find the groups? I currently use

_ = CALayer(SVGURL: svgURL) { (svgLayer) in which gives me all the layers inside. But is there a similar way to get all the groups? Or maybe there is a property of a layer that shows that it belongs to some group?

Also I see comments in the code that mention that SVGGroup gives opacity to all its sublayer. But I don't see that effect. What is the way to enable it?

Thank you!