 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

  1. Open your terminal in location that you want save the project.
  2. Clone the repo in this local.
git clone https://github.com/PaoloProdossimoLopes/swift-validator.git
  1. Open the file with extension .xcodeproj inside the folder project.

RUN

So that you can run the project follow this steps:

  1. Choose a simulator
  2. 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.

Contact:

Github Gmail Instagram Linkedin Medium

GitHub

View Github