Need help with EPContactsPicker?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

ipraba
447 Stars 109 Forks MIT License 101 Commits 30 Opened issues

Description

Contacts picker using new contacts framework by apple

Services available

!
?

Need anything else?

Contributors list

# 122,839
Swift
Shell
Objecti...
48 commits
# 211,826
Swift
stripe
cocoapo...
Objecti...
13 commits
# 130,807
Objecti...
bugsnag
React N...
debuggi...
7 commits
# 117,374
Objecti...
Rails
Amazon ...
es5
1 commit
# 597,284
Swift
Ruby
1 commit
# 220,722
Shell
Objecti...
C
1 commit

EPContactsPicker

EPContactsPicker

Contacts picker component using new contacts framework by apple

Platform Swift 3 CocoaPods Compatible CI Status License Twitter: @HaveYouMetPrabu

Preview

Single Selection Multi Selection

Installation

CocoaPods

EPContactsPicker is available on CocoaPods. Just add the following to your project Podfile:

pod 'EPContactsPicker'

Manual Installation

Just drag and drop the

EPContactsPicker
folder into your project

Requirements

  • iOS9+
  • Swift 3.0
  • ARC

For manual installation you might have to add these frameworks in your Build Phases

ContactsUI.framework
and
Contacts.framework
.

Features

EPContacts Picker provides lot of features which lets you customize the picker

  1. Single selection and multiselection option
  2. Search Contacts
  3. Making the secondary data to show as requested(Phonenumbers, Emails, Birthday and Organisation)
  4. Section Indexes to easily navigate throught the contacts
  5. Showing initials when image is not available
  6. EPContact object to get the properties of the contacts

Initialization

Init the picker by passing delegate, multiselection option and the secondary data(Phone number, Email, brithday and Organisation) to be displayed

let contactPickerScene = EPContactsPicker(delegate: self, multiSelection:false, subtitleCellType: SubtitleCellValue.Email)
let navigationController = UINavigationController(rootViewController: contactPickerScene)
self.presentViewController(navigationController, animated: true, completion: nil)

Delegates

EPContactsPicker provides you four delegates for getting the callbacks on the picker

func epContactPicker(_: EPContactsPicker, didContactFetchFailed error : NSError)
func epContactPicker(_: EPContactsPicker, didCancel error : NSError)
func epContactPicker(_: EPContactsPicker, didSelectContact contact : EPContact)
func epContactPicker(_: EPContactsPicker, didSelectMultipleContacts contacts : [EPContact])

EPContact Object

EPContact object provides you the properties of a contact. This contains properties like displayname, initials, firstname, lastname, organisation, birthdayString etc

License

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

Contributors

@ipraba @Sorix

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.