FWValidator
public protocol FWValidator
A protocol that every validator class need to conform to validate components.
-
Verifies if a given content is valid according to this validators rules.
Declaration
Swift
func validate(_ content: String) -> Bool
Parameters
content
The content that will be validated.
Return Value
Boolean value indicating if the content was accepted by the rule.
-
Description of the validator’s rule and how it behaves.
Declaration
Swift
var validationRuleDescription: String { get }