ZipCodeRule

public class ZipCodeRule: RegexRule

ZipCodeRule is a subclass of RegexRule that represents how zip codes are to be validated.

  • Initializes a ZipCodeRule object.

    Declaration

    Swift

    public convenience init(message : String = "Enter a valid 5 digit zipcode")

    Parameters

    message

    String that holds error message.

    Return Value

    An initialized object, or nil if an object could not be created for some reason that would not result in an exception.