EYContactsPicker

A modern, highly customisable contact picker with multi-selection options that closely resembles the behaviour of the ContactsUI’s CNContactPickerViewController.

Preview

Dark Mode White Mode

Installation

CocoaPods

Add this to your podfile for the latest version

pod 'EYContactsPicker'

Or specify desired version

pod 'EYContactsPicker', '~> 1.0.0'

Manual Installation

Download and include the EYContactsPicker folder and files in your codebase.

Requirements

  • iOS 12+
  • Swift 5

Features

EYContactsPicker is a modern, customisable and easy to use Contacts Picker similar to the stock CNContactPickerViewController. It does improve in a couple of area for a better UX.

Make sure your app (the host app) has provided a Privacy - Contacts Usage Description in your Info.plist. It’s also recommended that you check that contact authorisation is granted.

How to use

// This is in your application
        var theme = PickerTheme()
        theme.tintColor = .green
        let vc = PickContactsViewController(title: "test", description: "test description", pickerType: .list, country: .all , totalSelection: 100, theme: theme ,  isRTL: false) { contacts in
            for conatact in contacts {
                print(conatact.name ?? "")
                print(conatact.phoneNumber)
            }
        }
        self.present(vc, animated: true)

GitHub

View Github