Validation
public struct Validation
Struct representing the validation of the field collector.
- property regex: The regex of the validation.
- property errorMessage: The error message of the validation.
-
Declaration
Swift
public let regex: NSRegularExpression?
-
Declaration
Swift
public let errorMessage: String
-
Initializes a new instance of
Validation
.Declaration
Swift
public init(regexPattern: String, errorMessage: String)
Parameters
regexPattern
The regex pattern.
errorMessage
The error message.