Latest 1.0.1
Homepage https://github.com/evanrobertson/EmailValidator
License MIT
Platforms ios 10.0
Authors

A simple (but correct) library for validating email addresses. Supports mail addresses as defined in rfc5322 as well as the new Internationalized Mail Address standards (rfc653x). Based on https://github.com/jstedfast/EmailValidation

Installation

Add to your Podfile
pod 'EmailValidator'

Use

Basic

EmailValidator.validate("[email protected]")

Other options

EmailValidator.validate(email: "[email protected]",
                        allowTopLevelDomains: true, // true/false, will allow international addresses (e.g cyrillic or chinese)
                        allowInternational: true)   // true/false, will allow top level domains

Latest podspec

{
    "name": "EmailValidator",
    "version": "1.0.1",
    "summary": "A simple (but correct) library for validating email addresses.",
    "description": "A simple (but correct) Swift library for validating email addresses. Supports mail addresses as defined in rfc5322 as well as the new Internationalized Mail Address standards (rfc653x). Based on https://github.com/jstedfast/EmailValidation",
    "homepage": "https://github.com/evanrobertson/EmailValidator",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Evan Robertson": "[email protected]"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source": {
        "git": "https://github.com/evanrobertson/EmailValidator.git",
        "tag": "1.0.1"
    },
    "source_files": "EmailValidator",
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This