#17 implemented basic caching support for JAMSVGImage imageNamed:. However, rather than return copies of the cached image (which still has the primary benefit of skipping redundant SVG parsing and I/O), it returns a shared object with mutable properties.
Currently the only mutable property is scale, though if #20 is addressed, more properties could be usefully mutated.
This can cause unexpected problems and differs from expected behavior in which caches either return totally immutable shared objects or mutable copies of the original source.
#17 implemented basic caching support for
JAMSVGImage imageNamed:. However, rather than return copies of the cached image (which still has the primary benefit of skipping redundant SVG parsing and I/O), it returns a shared object with mutable properties.Currently the only mutable property is
scale, though if #20 is addressed, more properties could be usefully mutated.This can cause unexpected problems and differs from expected behavior in which caches either return totally immutable shared objects or mutable copies of the original source.