SVGLayerType
public protocol SVGLayerType
A protocol that describes an instance that can store bounding box information
-
resizeToFit(_:)
Extension methodScales a layer to aspect fit the given size.
Todo
Should eventually support different content modesDeclaration
Swift
@discardableResult func resizeToFit(_ rect: CGRect) -> Self
Parameters
rect
The
CGRect
to fit into