exyte / Macaw

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

renderToImage Crash #651

Open kamil3 opened 4 years ago

kamil3 commented 4 years ago

It's related to: https://github.com/exyte/Macaw/issues/637 Fatal error: Unexpectedly found nil while unwrapping an Optional value: file (...)/Macaw-master/Source/render/NodeRenderer.swift, line 267 My examples: https://raw.githubusercontent.com/kamil3/Test/master/pattern1.svg and https://raw.githubusercontent.com/kamil3/Test/master/pattern2.svg (this one has <pattern> and <image> swapped)

amarunko commented 4 years ago

Thanks, @kamil3, I'll try to fix this

amarunko commented 4 years ago

Found empty group trying to render as image in first svg