Formatter

public protocol Formatter : Sanitizer

Formats a value for display purposes.

  • Formats the given value.

    Declaration

    Swift

    func formattedValue(for value: String) -> String

    Parameters

    value

    The value to format.

    Return Value

    A formatted version of the given value.