CurrencyRule

public class CurrencyRule : RuleType

CurrencyRule presents the rule that a currency string should follow.

Version

1.10.0

Date

19/09/22

Author

Adamas
  • Initialize the rule

    Declaration

    Swift

    public init(message: String,
                languages: [Language])

    Parameters

    message

    The error message to apply.

  • Declaration

    Swift

    public func isValid(value: String?) -> String?