{"id":32150443,"url":"https://github.com/graycampbell/gccountrypicker","last_synced_at":"2026-02-19T07:01:40.585Z","repository":{"id":56911851,"uuid":"105195245","full_name":"graycampbell/GCCountryPicker","owner":"graycampbell","description":"A localized, searchable country picker view controller with optional calling codes for iOS 9+ written in Swift.","archived":false,"fork":false,"pushed_at":"2019-05-04T22:39:05.000Z","size":41877,"stargazers_count":10,"open_issues_count":1,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-01-31T21:41:40.362Z","etag":null,"topics":["calling-codes","cocoapods","country-codes","country-picker","international-phone-codes","ios","phone-number-picker","picker-component","swift"],"latest_commit_sha":null,"homepage":"https://graycampbell.github.io/GCCountryPicker","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/graycampbell.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-28T20:18:56.000Z","updated_at":"2022-09-10T15:18:42.000Z","dependencies_parsed_at":"2022-08-21T04:20:41.154Z","dependency_job_id":null,"html_url":"https://github.com/graycampbell/GCCountryPicker","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/graycampbell/GCCountryPicker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graycampbell%2FGCCountryPicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graycampbell%2FGCCountryPicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graycampbell%2FGCCountryPicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graycampbell%2FGCCountryPicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graycampbell","download_url":"https://codeload.github.com/graycampbell/GCCountryPicker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graycampbell%2FGCCountryPicker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29605799,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T06:47:36.664Z","status":"ssl_error","status_checked_at":"2026-02-19T06:45:47.551Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calling-codes","cocoapods","country-codes","country-picker","international-phone-codes","ios","phone-number-picker","picker-component","swift"],"created_at":"2025-10-21T10:02:05.079Z","updated_at":"2026-02-19T07:01:40.578Z","avatar_url":"https://github.com/graycampbell.png","language":"Swift","readme":"![banner](Resources/README/Assets/Banner.png)\n\n[![Release](https://img.shields.io/github/release/graycampbell/GCCountryPicker.svg)](https://github.com/graycampbell/GCCountryPicker/releases/latest)\n[![CocoaPods](https://img.shields.io/cocoapods/v/GCCountryPicker.svg)](https://cocoapods.org/pods/GCCountryPicker)\n[![Documentation](https://img.shields.io/badge/docs-100%25-brightgreen.svg)](https://graycampbell.github.io/GCCountryPicker)\n[![Codacy Code Quality](https://img.shields.io/codacy/grade/99eca2221a994d43954c30138416c249.svg)](https://www.codacy.com/app/graycampbell/GCCountryPicker?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=graycampbell/GCCountryPicker\u0026amp;utm_campaign=Badge_Grade)\n[![Swift 4 Compatible](https://img.shields.io/badge/Swift_4-compatible-4BC51D.svg?style=flat)](https://developer.apple.com/swift)\n![Platform](https://img.shields.io/cocoapods/p/GCCountryPicker.svg?style=flat)\n[![License](https://img.shields.io/cocoapods/l/GCCountryPicker.svg)](https://github.com/graycampbell/GCCountryPicker/blob/master/LICENSE)\n\n### CocoaPods\n\n```\npod 'GCCountryPicker'\n```\n\n### Implementation\n\n1. Add GCCountryPicker to your file's import statements.\n\n    ```\n    import GCCountryPicker\n    ```\n\n2. Create an instance of GCCountryPickerViewController.\n\n    ```\n    let countryPickerViewController = GCCountryPickerViewController(displayMode: .withoutCallingCodes)\n    ```\n\n3. Set the delegate, data source (optional), and navigation title.\n\n    ```\n    countryPickerViewController.delegate = self\n    countryPickerViewController.dataSource = self\n    countryPickerViewController.navigationItem.title = \"Countries\"\n    ```\n\n4. Embed the country picker view controller in a navigation controller.\n\n    ```\n    let navigationController = UINavigationController(rootViewController: countryPickerViewController)\n    ```\n\n5. Present the navigation controller.\n\n    ```\n    self.present(navigationController, animated: true, completion: nil)\n    ```\n\n6. Implement GCCountryPickerDelegate.\n\n    ```\n    func countryPickerDidCancel(_ countryPicker: GCCountryPickerViewController)\n    \n    func countryPicker(_ countryPicker: GCCountryPickerViewController, didSelectCountry country: GCCountry)\n    ```\n\n7. Implement GCCountryPickerDataSource if necessary.\n\n    ```\n    func countryCodes(for countryPicker: GCCountryPickerViewController) -\u003e [String]\n    ```\n\n### Documentation\n\n- [Classes](https://graycampbell.github.io/GCCountryPicker/Classes.html)\n  - [GCCountry](https://graycampbell.github.io/GCCountryPicker/Classes/GCCountry.html)\n  - [GCCountryPickerViewController](https://graycampbell.github.io/GCCountryPicker/Classes/GCCountryPickerViewController.html)\n  \n- [Enumerations](https://graycampbell.github.io/GCCountryPicker/Enums.html)\n  - [GCCountryPickerDisplayMode](https://graycampbell.github.io/GCCountryPicker/Enums/GCCountryPickerDisplayMode.html)\n\n- [Protocols](https://graycampbell.github.io/GCCountryPicker/Protocols.html)\n  - [GCCountryPickerDelegate](https://graycampbell.github.io/GCCountryPicker/Protocols/GCCountryPickerDelegate.html)\n  - [GCCountryPickerDataSource](https://graycampbell.github.io/GCCountryPicker/Protocols/GCCountryPickerDataSource.html)\n\n### License\n\nGCCountryPicker is available under the MIT license. See the [LICENSE](https://github.com/graycampbell/GCCountryPicker/blob/master/LICENSE) file for more info.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraycampbell%2Fgccountrypicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraycampbell%2Fgccountrypicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraycampbell%2Fgccountrypicker/lists"}