AlphaNumericRule

public class AlphaNumericRule: CharacterSetRule

AlphaNumericRule is a subclass of CharacterSetRule. It is used to verify that a field has a valid list of alphanumeric characters.

  • Initializes a AlphaNumericRule object to verify that field has valid set of alphanumeric characters.

    Declaration

    Swift

    public init(message: String = "Enter valid numeric characters")

    Parameters

    message

    String of 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.