Validator - The struct will validate data depends which options what your choose
VALIDATOR
Validator is a a struct, must be contains some logic do avoid massive components and help to find erros in logic.
? Example:
let validator: ValidateDataHandler = .init()
//Should implement your cases and validations
validator.validate(rule: .isEmptyStateCell) //Return: true
validator.validate(rule: .isStandartCell) //Return: false
ℹ️ GETTING STARTED
PREREQUISITES
- Swift 4+
- Xcode 10+
INSTALATION
- Open your terminal in location that you want save the project.
- Clone the repo in this local.
git clone https://github.com/PaoloProdossimoLopes/swift-validator.git
- Open the file with extension .xcodeproj inside the folder project.
RUN
So that you can run the project follow this steps:
- Choose a simulator
- Then click on the COMMAND + R keys or press the ▶︎ (icon at the top of the IDE).
? License:
The MIT license was used in this project.