Skip Navigation
Type MethodMethod

symbol(_:identifier:)

Returns the <symbol> element that defines an icon for referringSVG(_:identifier:).

static func symbol(
    _ svg: String,
    identifier: String
) -> String

Parameters

svg

The complete SVG element of the icon.

identifier

The identifier of the definition.

Return Value

A symbol with the icon’s view box and content.