Giter VIP home page Giter VIP logo

epcontactspicker's Introduction

EPContactsPicker

EPContactsPicker

Contacts picker component using new contacts framework by apple

Platform Swift 2.2 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'
use_frameworks!

####Manual Installation

Just drag and drop the EPContactsPicker folder into your project

Requirements

iOS9+ Swift 2.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

optional    func epContactPicker(_: EPContactsPicker, didContactFetchFailed error : NSError)
optional    func epContactPicker(_: EPContactsPicker, didCancel error : NSError)
optional    func epContactPicker(_: EPContactsPicker, didSelectContact contact : EPContact)
optional    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

epcontactspicker's People

Contributors

amigodeveloper avatar antons81 avatar ipraba avatar paulz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.