An open API service indexing awesome lists of open source software.

https://github.com/kapizoli77/valigator

Swift validator library
https://github.com/kapizoli77/valigator

carthage cocoapods ios ios-lib ios-swift swift swift-framework swift-library swift-package-manager swift5 validation validation-framework validation-library validation-rules valigator xcode

Last synced: 3 months ago
JSON representation

Swift validator library

Awesome Lists containing this project

README

          

![Valigator](https://github.com/kapizoli77/valigator/raw/master/valigator.png)

# Valigator
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/kapizoli77/valigator/graphs/commit-activity) [![Actions Status](https://github.com/kapizoli77/valigator/workflows/Swift/badge.svg)](https://github.com/kapizoli77/valigator/actions)

Swift library to validate single fields or a whole form

## Installation
### Cocoapods
[![Pod version](https://cocoapod-badges.herokuapp.com/v/Valigator/badge.png)](https://cocoapods.org/pods/Valigator) [![Pod platforms](https://cocoapod-badges.herokuapp.com/p/Valigator/badge.png)](https://cocoapods.org/pods/Valigator)
[CocoaPods](https://cocoapods.org) is a dependency manager for Swift and Objective-C Cocoa projects. For usage and installation instructions, visit their website. To integrate Valigator into your Xcode project using CocoaPods, specify it in your Podfile:
```ruby
pod 'Valigator', '~> 1.0.0'
```

### Carthage
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate Valigator into your Xcode project using Carthage, specify it in your Cartfile:
```ruby
github "https://github.com/kapizoli77/valigator.git" "master"
```

### Swift Package Manager
[![swift-package-manager](https://img.shields.io/badge/package%20manager-compatible-brightgreen.svg?logo=data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNjJweCIgaGVpZ2h0PSI0OXB4IiB2aWV3Qm94PSIwIDAgNjIgNDkiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDYzLjEgKDkyNDUyKSAtIGh0dHBzOi8vc2tldGNoLmNvbSAtLT4KICAgIDx0aXRsZT5Hcm91cDwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJHcm91cCIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICAgICAgPHBvbHlnb24gaWQ9IlBhdGgiIGZpbGw9IiNEQkI1NTEiIHBvaW50cz0iNTEuMzEwMzQ0OCAwIDEwLjY4OTY1NTIgMCAwIDEzLjUxNzI0MTQgMCA0OSA2MiA0OSA2MiAxMy41MTcyNDE0Ij48L3BvbHlnb24+CiAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJQYXRoIiBmaWxsPSIjRjdFM0FGIiBwb2ludHM9IjI3IDI1IDMxIDI1IDM1IDI1IDM3IDI1IDM3IDE0IDI1IDE0IDI1IDI1Ij48L3BvbHlnb24+CiAgICAgICAgICAgIDxwb2x5Z29uIGlkPSJQYXRoIiBmaWxsPSIjRUZDNzVFIiBwb2ludHM9IjEwLjY4OTY1NTIgMCAwIDE0IDYyIDE0IDUxLjMxMDM0NDggMCI+PC9wb2x5Z29uPgogICAgICAgICAgICA8cG9seWdvbiBpZD0iUmVjdGFuZ2xlIiBmaWxsPSIjRjdFM0FGIiBwb2ludHM9IjI3IDAgMzUgMCAzNyAxNCAyNSAxNCI+PC9wb2x5Z29uPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+)](https://github.com/apple/swift-package-manager)
The [Swift Package Manager](https://swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the swift compiler. You can add it with Xcode integrated SPM support or manually, with adding this dependency to your Package.swift file:
```swift
dependencies: [
.package(url: "https://github.com/kapizoli77/valigator", .upToNextMinor(from: "1.0.0"))
]
```

### Manual
TODO

## Usage
[Detailed usage info](https://github.com/kapizoli77/valigator/tree/master/Documentation/Usage.md)

## Documentation
[API doc](https://kapizoli77.github.io/valigator/) generated by Jazzy

## License
[![GitHub license](https://img.shields.io/github/license/Naereen/StrapDown.js.svg)](LICENSE)

Valigator is released under the [MIT License](LICENSE).

## Feedback is welcome
If you found a bug or want to improve the Valigator feel free to create an issue.