Converter

public struct Converter

Provides capabilities to convert various types to and from strings in a culture-independent way.

  • Converts the specified image to string.

    Declaration

    Swift

    public static func fromImage(_ val: UIImage) -> String

    Parameters

    val

    The image object to convert.

    Return Value

    A string representing the specified value.

  • Converts the specified color value to string in the format #AARRGGBB.

    Declaration

    Swift

    public static func fromColor(_ val: Color) -> String

    Parameters

    val

    The color to convert.

    Return Value

    A string representing the specified value.