mchoe / SwiftSVG

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

Not able to use in NSTableView #52

Open datinc opened 7 years ago

datinc commented 7 years ago

When using this in a table view there are 2 issues 1) When scrolling there the following output is printed Uncommitted CATransaction. Set CA_DEBUG_TRANSACTIONS=1 in environment to debug. 2) There seems to be no way to reuse a SVGLayer while scrolling. A new layer needs to be created every time.

jordilaforge commented 6 years ago

I have the same problem. You can't use SwiftSVG in a UITableView because there is no possibility to change the svg if the cell is reused. There should be a setSVG method in svgLayer class.