RuleType

public protocol RuleType : AnyObject

RuleType presents a rule that a text field value should follow.

Version

1.8.0

Date

08/10/21

Author

Adamas
  • Check if a given value is valid

    Declaration

    Swift

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

    Parameters

    value

    The value to check

    Return Value

    The error message if the value is invalid