Classes

The following classes are available globally.

  • A CAShapeLayer subclass that allows you to easily work with sublayers and get sizing information

    See more

    Declaration

    Swift

    open class SVGLayer : CAShapeLayer, SVGLayerType
  • A UIView subclass that can be used in Interface Builder where you can set the @IBInspectable propert SVGName in the side panel. Use the UIView extensions if you want to creates SVG views programmatically.

    See more

    Declaration

    Swift

    open class SVGView : UIView
  • 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.

    See more

    Declaration

    Swift

    open class SVGCache
  • Concrete implementation that creates a CAShapeLayer from a <circle> element and its attributes

    See more

    Declaration

    Swift

    final class SVGCircle : SVGShapeElement
  • Concrete implementation that creates a CAShapeLayer from a <ellipse> element and its attributes

    See more

    Declaration

    Swift

    final class SVGEllipse : SVGShapeElement
  • Concrete implementation that creates a container from a <g> element and applies its attribites to all sublayers

    See more

    Declaration

    Swift

    final class SVGGroup : SVGContainerElement
  • Concrete implementation that creates a CAShapeLayer from a <line> element and its attributes

    See more

    Declaration

    Swift

    final class SVGLine : SVGShapeElement
  • Concrete implementation that creates a CAShapeLayer from a <rect> element and its attributes

    See more

    Declaration

    Swift

    final class SVGRectangle : SVGShapeElement
  • Concrete implementation of SVGParser that uses Foundation’s XMLParser to parse a given SVG file.

    See more

    Declaration

    Swift

    open class NSXMLSVGParser : XMLParser, XMLParserDelegate