AlphaRule
public class AlphaRule: CharacterSetRule
AlphaRule
is a subclass of CharacterSetRule
. It is used to verify that a field has a
valid list of alpha characters.
-
Initializes an
AlphaRule
object to verify that a field has valid set of alpha characters.Declaration
Swift
public init(message: String = "Enter valid alphabetic characters")
Parameters
message
String of error message.
Return Value
An initialized object, or nil if an object could not be created for some reason.