Skip to content

A simple and easy to use view controller enabling you to enter a phone number with a country code similar to WhatsApp written in Swift

License

Notifications You must be signed in to change notification settings

rahulskh/phone-number-picker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhoneNumberPicker

A simple and easy to use view controller enabling you to enter a phone number with a country code similar to WhatsApp

Screenshots

alt text alt text

Setup

  • 1: Create the PhoneNumberViewController let phoneNumberViewController = PhoneNumberViewController.standardController()
  • 2: Set delegate (optional) phoneNumberViewController.delegate = self
  • 3: Present the PhoneNumberViewController (Modally) presentViewController(phoneNumberViewController, animated: true, completion: nil)
  • 4: Present the PhoneNumberViewController (Navigation Controller) phoneNumberViewController.cancelBarButtonItemHidden = true navigationController?.pushViewController(phoneNumberViewController, animated: true)

Delegate

You can respond to delegate methods using the PhoneNumberViewControllerDelegate protocol

Country Selector

You can manually present a CountriesViewController to present a list of all countries and their phone extensions to the user

About

A simple and easy to use view controller enabling you to enter a phone number with a country code similar to WhatsApp written in Swift

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%