SVGLayerType

public protocol SVGLayerType

A protocol that describes an instance that can store bounding box information

  • resizeToFit(_:) Extension method

    Scales a layer to aspect fit the given size.

    Todo

    Should eventually support different content modes

    Declaration

    Swift

    @discardableResult
    func resizeToFit(_ rect: CGRect) -> Self

    Parameters

    rect

    The CGRect to fit into