Latest 0.1.9
Homepage https://github.com/anpkmr/SwiftyCountryPicker
License MIT
Platforms ios 9.0, requires ARC
Frameworks UIKit
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Screen Shots:-

Requirements

Library don’t depeneds on any third party library.

Installation

SwiftyCountryPicker is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'SwiftyCountryPicker'

Basic configuration

1- Add a pickerView in your storyBoard.
2- From the attribute inspector set your pickerView class name to

CountryPickerView 

3- Create outlet for your countryPicker in ViewController

@IBOutlet weak var pickerView:CountryPickerView!

3- On your view controller add the following code to setup countryPicker

pickerView.setCountryPickerView(hideflag: false, countryName: false, countryCode: false, countrydialCode: false) 

4- You can add your own done and cancel button above the picker .
On done button press you can call the below closure to get the selected country. and other info.

pickerView.getSelctedCountry { (data) in print(data.countryCode)}

Author

anpkmr, [email protected]

License

SwiftyCountryPicker is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "SwiftyCountryPicker",
    "version": "0.1.9",
    "summary": "Show a country picker to choose the country.",
    "swift_version": "4.0",
    "description": "Show a country picker to choose the country. You can add your own done button above the picker to get the selected country.",
    "homepage": "https://github.com/anpkmr/SwiftyCountryPicker",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "anpkmr": "[email protected]"
    },
    "source": {
        "git": "https://github.com/anpkmr/SwiftyCountryPicker.git",
        "tag": "0.1.9"
    },
    "requires_arc": true,
    "platforms": {
        "ios": "9.0"
    },
    "static_framework": true,
    "resources": "SwiftyCountryPicker/Assets/*",
    "source_files": "SwiftyCountryPicker/Classes/**/*",
    "resource_bundles": {
        "SwiftyCountryPicker": [
            "SwiftyCountryPicker/Assets/*{.png,.plist}",
            "SwiftyCountryPicker/Classes/**/*"
        ]
    },
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This