Revo Docs
Installation

Add RevoValidation to your Xcode project or Swift Package Manager project.

Xcode Project

To add RevoValidation to an Xcode project:

  1. In Xcode, select FileAdd Package Dependencies...
  2. Enter the package URL: https://github.com/revosystems/RevoValidation
  3. Select the version rule (e.g., "Up to Next Minor Version") and specify the version (e.g., v1.1.3 )
  4. Click Add Package
  5. Select the target where you want to add the dependency
  6. Click Add Package to complete the installation
Swift Package Manager (Package.swift)

To add RevoValidation to a Swift Package Manager project, add it to the dependencies in your Package.swift file:

// swift-tools-version: 5.9
import PackageDescription

let package = Package(
    name: "YourPackage",
    platforms: [
        .iOS(.v15),
        .macOS(.v11)
    ],
    dependencies: [
        .package(url: "https://github.com/revosystems/RevoValidation", .upToNextMinor(from: "v1.1.3"))
    ],
    targets: [
        .target(
            name: "YourTarget",
            dependencies: [
                .product(name: "RevoValidation", package: "RevoValidation")
            ]
        )
    ]
)
Copied!

Then add the product to your target's dependencies array as shown above.

Import in Your Code

Once installed, import RevoValidation in your Swift files:

import RevoValidation
Copied!