SVGRectangle
final class SVGRectangle : SVGShapeElement
Concrete implementation that creates a CAShapeLayer
from a <rect>
element and its attributes
-
The CGRect for the rectangle
Declaration
Swift
internal var rectangleRect: CGRect
-
The x radius of the corner oval. Defaults to
0
Declaration
Swift
internal var xCornerRadius: CGFloat
-
The y radius of the corner oval. Defaults to
0
Declaration
Swift
internal var yCornerRadius: CGFloat
-
Function that parses the number string and sets this rectangle’s origin x
Declaration
Swift
internal func parseX(x: String)
-
Function that parses the number string and sets this rectangle’s origin y
Declaration
Swift
internal func parseY(y: String)
-
Function that parses the number string and sets this rectangle’s height
Declaration
Swift
internal func rectangleHeight(height: String)
-
Function that parses the number string and sets this rectangle’s width
Declaration
Swift
internal func rectangleWidth(width: String)
-
Function that parses the number string and sets this rectangle’s x corner radius
Declaration
Swift
internal func xCornerRadius(xCornerRadius: String)
-
Function that parses the number string and sets this rectangle’s y corner radius
Declaration
Swift
internal func yCornerRadius(yCornerRadius: String)
-
Creates a new rectangle path based on the set attributes.
Declaration
Swift
internal func didProcessElement(in container: SVGContainerElement?)