Formatter

public protocol Formatter

Formatter defines the function to format a string.

Version

1.10.0

Date

13/07/22

Author

Adamas
  • Format the value to a more user friendly one

    Declaration

    Swift

    func format(_ value: String) -> String

    Parameters

    value

    The current value

    Return Value

    The formatted value

  • Remove any formatting applied and get the original value

    Declaration

    Swift

    func removeFormatting(_ value: String) -> String

    Parameters

    value

    The formatted value

    Return Value

    The original value