EmailValidation

0.1.0

Swift macro framework for validating email addresses
josetorronteras/EmailValidationMacro

What's New

0.1.0

2024-02-07T17:25:38Z

What's Changed

New Contributors

Full Changelog: https://github.com/josetorronteras/EmailValidationMacro/commits/0.1.0

Email Validation Macro

CodeFactor

Email Validation Macro is a Swift macro framework for validating email addresses.

Basic Usage

// Create and validate an email address
let validEmail = #email("foo@email.com")

let invalidEmail = #email("foo@.com") // ❌

Installation

Swift Package Manager

Add the following line to the dependencies in Package.swift:

.package(
    url: "https://github.com/josetorronteras/EmailValidationMacro",
    from: "1.0.0"
),

Then add EmailValidationMacro to your target's dependencies:

.product(
    name: "EmailValidation",
    package: "EmailValidationMacro"
),

Xcode

Go to File > Add Package Dependencies... and paste the repo's URL:

https://github.com/josetorronteras/EmailValidationMacro

License

This library is relased under the MIT license. See LICENSE for details.

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

Last updated: Thu Oct 17 2024 19:26:43 GMT-0900 (Hawaii-Aleutian Daylight Time)