Type MethodMethodreferring
referringSVG(_:identifier:keepingViewBox:)
Returns an SVG element that draws a defined icon: the icon’s classes and a <use> element referring to its definition.
static func referringSVG(
_ svg: String,
identifier: String,
keepingViewBox: Bool = false
) -> StringParameters
svgThe complete SVG element of the icon.
identifierThe identifier of the icon’s definition.
keepingViewBoxWhether the element keeps the icon’s view box, which gives it the icon’s aspect ratio where the stylesheet sets only one dimension.
Return Value
The referring SVG element.