# SwiftValidatorCommunity/SwiftValidator

A rule-based validation library for Swift

Repository: https://github.com/SwiftValidatorCommunity/SwiftValidator
Canonical: https://ross.abutalabs.com/products/swiftvalidator
Language: Swift
License: MIT
License Family: permissive
Last push: 2021-05-25T21:38:33+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4304, "days_push": 1926, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1438, forks 366 (observed 2026-08-28T04:04:43.952139+00:00)

## What it is
SwiftValidator is a rule-based validation library for Swift, primarily used to validate UITextField inputs in iOS apps. It evaluates registered fields against a sequence of rules (required, email, length, confirmation, regex) and reports validation errors, optionally via error labels.

## Use cases
- validate form inputs in an iOS app
- check email and required fields in Swift
- add rule-based text field validation to UIKit forms
- confirm password and email fields match in Swift
- show inline error labels for invalid form fields
- validate zip codes and phone numbers with regex rules

## When to choose
- you are building an iOS/UIKit app in Swift and need declarative text field validation
- you want built-in rules like required, email, min length, and confirmation with custom error messages

## When to avoid
- you are building for SwiftUI or non-Apple platforms
- you need a library with recent releases or active maintenance
- you need validation beyond UITextField-centric form input

## Facets
- artifact type: library
- maturity: maintenance
- function: form-handling
- domain: mobile-development
- platform: -
- tags: swift, validation-rules, uitextfield, cocoapods, carthage, ios, mobile

## Member repositories
- SwiftValidatorCommunity/SwiftValidator (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:43.952139+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:36:38.709014+00:00, confidence not recorded.
  - readme: https://github.com/SwiftValidatorCommunity/SwiftValidator (fetched 2026-08-28T04:04:43.952139+00:00, sha 7eb26bad1522)
- Data as of 2026-08-30T08:39:29.467469+00:00.
