Understand the SVGLayer abstraction
masterSVGLayer is a subclass of CAShapeLayer provided to you via the completion blocks of UIView and CALayer initializers. It includes several specialized capabilities:
boundingBox: ACGRectproperty representing the minimum rectangle that encloses all subpaths. This is useful for scaling the layer to fit a specific view size.- Property Overrides: Overriding properties like
fillColor,strokeColor, andstrokeWidthon theSVGLayerwill apply those values to all its sublayers. - Copying: Supports creating a copy of the
SVGLayer, which is useful for implementing caching mechanisms.