Swiftpack.co - StebinAlex/SACountryPicker as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by StebinAlex.
StebinAlex/SACountryPicker 1.0.3
A Simple solution for country picker
⭐️ 4
🕓 3 years ago
.package(url: "https://github.com/StebinAlex/SACountryPicker.git", from: "1.0.3")

SACountryPicker

A Simple Country Picker. Country picker with phone code, flag image and name.

Swift Package Manager.

Use following link to add package to your project and use latest version for stability.

https://github.com/StebinAlex/SACountryPicker.git

Usage

Import SACountryPicker

Use SACountryPickerView for Picker view.

let picker = SACountryPickerView(frame: CGRect(x: 0, y: 0, width: 300, height: 300))
picker.center = view.center
picker.title = "Select Country"
picker.topColor = .systemGreen
picker.delegate = self
self.view.addSubview(picker) 

use delegate SACountryPickerViewDelegate for getting clicked country details.

Also you can get country details by using SACountryPicker For all country list and details

SACountryPicker().countryList() 

For getting flag image

SACountryPicker().imageForCountryCode("IN")

Sample screenshot Simulator Screen Shot - iPhone 12 - 2021-02-04 at 18 08 18

Author

Stebin Alex.

Please share, If you found this useful. 😊

GitHub

link
Stars: 4
Last commit: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics