String

public extension String

A SAP Icon extension to String.

  • Get a SAP Icon icon string with the given icon name.

    Declaration

    Swift

    static func fromIcon(_ name: SAPIcon) -> String

    Parameters

    name

    The preferred icon name.

    Return Value

    A string that will appear as icon with SAP Icon.

  • Get a SAP Icon icon string with the given CSS icon code.

    Declaration

    Swift

    static func fromIcon(code: String) -> String?

    Parameters

    code

    The preferred icon name.

    Return Value

    A string that will appear as icon with SAP Icon.