Skip to content

Chen-Michael/CountryCodePlugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CountryCodePlugin

CocoaPods Compatible Platform License

Example

Imgur

Requirements

  • iOS 10.0+
  • Xcode 11.0+
  • Swift 5.0+

Installation

Add this to Podfile, and then update dependency:

pod 'CountryCodePlugin'

Usage

Quick Start

import CountryCodePlugin

let controller = CountryCodeTableViewController.instantiate()
controller.modalPresentationStyle = .fullScreen
controller.delegate = self
controller.language = .TW
        
present(controller, animated: true, completion: nil)

// Implements CountryCodeDeledate
// Callback after user selection
func countryCodeDidSelect(code: String, name: String) {
    
}

// You can custom the layout of cell (Optional)
func makeCountryCodeCell(cell: UITableViewCell, code: String, name: String) -> UITableViewCell {
    return cell
}

Support language

  • English
  • Traditional Chinese

Feature

  • Custom cell
  • Text search
  • Pictures of national flag
  • Grouping for cell

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published