Latest 1.3.0
Homepage https://github.com/dockwa/EmailPicker
License MIT
Platforms ios 8.0
Dependencies CLTokenInputView, APAddressBook
Authors

Powered by Dockwa

Version
License
Platform

What It Is

EmailPicker is a simple Swift viewcontroller to easily select emails from a user’s contacts and/or enter them manually. Great for sharing content or inviting users.

Example

Sample

To test out EmailPicker, just run pod try EmailPicker from your terminal, or clone the repo, and run pod install from the Example directory.

Usage

Check out the example project for a usage example, like this:

let textToShow = "To share your fun results with some friends, please type their emails or select their names from the list. Enjoy!"
let picker = EmailPickerViewController(infoText: textToShow, doneButtonTitle: "Send", completion: {(result) in
    switch result {
    case .cancelled(let vc):
        vc.dismiss(animated: true) {
            self.contactsLabel.text = "Cancelled!"
        }

    case .selected(let vc, let emails):
        vc.dismiss(animated: true) {
            self.contactsLabel.text = "Selected Emails: (emails)"
        }
    }
})
present(UINavigationController(rootViewController: picker), animated: true, completion: nil)

Requirements

Swift 4.0

This is a Swift project and uses Swift specific features such as associated values on enums, so you cannot use this pod in Objective-C.

Installation

EmailPicker is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'EmailPicker'

Author

Christian Hatch, @commodoreftp

License

EmailPicker is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "EmailPicker",
    "version": "1.3.0",
    "summary": "A viewcontroller to select emails, written in Swift.",
    "description": "A viewcontroller that enables users to select emails from a list of their contacts, or type them in manually. 100% Swift.",
    "homepage": "https://github.com/dockwa/EmailPicker",
    "license": "MIT",
    "authors": {
        "Christian Hatch": "[email protected]"
    },
    "source": {
        "git": "https://github.com/dockwa/EmailPicker.git",
        "tag": "1.3.0"
    },
    "social_media_url": "https://twitter.com/commodoreftp",
    "swift_version": "4.1",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "EmailPicker/Classes/**/*",
    "dependencies": {
        "CLTokenInputView": [],
        "APAddressBook": []
    }
}

Pin It on Pinterest

Share This