SVGCircle
final class SVGCircle : SVGShapeElement
Concrete implementation that creates a CAShapeLayer
from a <circle>
element and its attributes
-
The circle’s center point. Defaults to
CGRect.zero
Declaration
Swift
internal var circleCenter: CGPoint
-
The circle’s radius. Defaults to
0
Declaration
Swift
internal var circleRadius: CGFloat
-
Function that parses the number string and sets this instance’s radius
Declaration
Swift
internal func radius(r: String)
-
Function that parses the number string and sets this instance’s x center
Declaration
Swift
internal func xCenter(x: String)
-
Function that parses the number string and sets this instance’s y center
Declaration
Swift
internal func yCenter(y: String)
-
Function that is called after the circle’s center and radius have been parsed and set. This function creates the path and sets the internal
SVGLayer
‘s path.Declaration
Swift
internal func didProcessElement(in container: SVGContainerElement?)