Swiftpack.co - bdolewski/SwiftEmailValidator as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by bdolewski.
bdolewski/SwiftEmailValidator v1.2.1
Very small e-mail validation helper written in Swift
⭐️ 3
🕓 4 years ago
.package(url: "https://github.com/bdolewski/SwiftEmailValidator.git", from: "v1.2.1")

SwiftEmailValidator

Very small e-mail validation helper written in Swift. It contains regular expresion that is compliant with RFC 5322. You can use it via Swift Package Manager or just copy file SwiftEmailValidator.swift into your project - done!

How do I use it in my code?

Simple as this:

let result = EmailValidator.isValid(email: "[email protected]")

There is only 1 static function isValid(email:) enclosed in namespace EmailValidator (just a case-less enum to not create any instances of EmailValidator)

GitHub

link
Stars: 3
Last commit: 4 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

v1.2.1
4 years ago
  • fixed issue with downloading package directly from Xcode 11

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics