Skip to content

pahmed/EVContactsPicker

 
 

Repository files navigation

EVContactsPicker

CI Status Version License Platform

Swift 3

Swift 3 support on master until Xcode8 out of beta

Screenshots

Screenshot0    Screenshot1

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

import EVContactsPicker

Requirements

  • iOS 9.0+
  • ARC

Installation

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

pod "EVContactsPicker"

Example

import UIKit
import EVContactsPicker

class DemoController: UIViewController, EVContactsPickerDelegate {

    ...

    func showPicker() {
        let contactPicker = EVContactsPickerViewController()
        contactPicker.delegate = self
        self.navigationController?.pushViewController(contactPicker, animated: true)
    }

    func didChooseContacts(contacts: [EVContact]?) {
        if let cons = contacts {
            for con in cons {
                print("\(con.fullname()")
            }
        }
        self.navigationController?.popViewControllerAnimated(true)
    }

    ...
    
}

Author

Edward Valentini, edward@interlook.com

License

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

About

Contacts Picker for iOS that uses new ios9 Contacts API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 60.9%
  • Shell 21.2%
  • Ruby 16.7%
  • Objective-C 1.2%