SVGLine

final class SVGLine : SVGShapeElement

Concrete implementation that creates a CAShapeLayer from a <line> element and its attributes

  • end

    The line’s end point. Defaults to CGPoint.zero

    Declaration

    Swift

    internal var end: CGPoint
  • The line’s end point. Defaults to CGPoint.zero

    Declaration

    Swift

    internal var start: CGPoint
  • Function parses a number string and sets this line’s start x

    Declaration

    Swift

    internal func x1(x1: String)
  • Function parses a number string and sets this line’s end x

    Declaration

    Swift

    internal func x2(x2: String)
  • Function parses a number string and sets this line’s start y

    Declaration

    Swift

    internal func y1(y1: String)
  • Function parses a number string and sets this line’s end y

    Declaration

    Swift

    internal func y2(y2: String)
  • Draws a line from the startPoint to the endPoint

    Declaration

    Swift

    internal func didProcessElement(in container: SVGContainerElement?)