SVGCache

open class SVGCache

A minimal in-memory cache class for caching SVGLayers. The default singleton is the default cache used and you can optionally create your own static singleton through an extension.

  • A singleton object that is the default store for SVGlayers

    Declaration

    Swift

    public static let `default`: SVGCache
  • Subscript to get or set the SVGLayer in this cache

    Declaration

    Swift

    public subscript(key: String) -> SVGLayer? { get set }
  • Removes the value from the cache

    Declaration

    Swift

    public func removeObject(key: String)