Xamarin.Forms Country Picker for Android & iOS
April 6, 2021 ยท View on GitHub

What are there?
- All available countries. Not hardcoded - all gets generic.
- SVG for each country from
ttps://hatscripts.github.io/circle-flags. - Country codes also not hardcoded, all gets from NuGet via ISO Region Name.
- Built-in Search by Country Name.
- Beautiful UI with appearing animation.
- Easy to integrate into any Xamarin.Forms application - just copy required files and be happy ๐.
Used NuGet Packages for Solution:
| NuGet Name | Description |
|---|---|
| Rg.Plugins.Popup | Used to display pop-ups |
| Xamarin.Forms.PancakeView | Used for round some corners |
| libphonenumber-csharp | Used to obtain the country code number |
| Xamarin.FFImageLoading.Svg.Forms | Used to display SVG images from the Internet |
Project Sctructure:
Example application done on default Xamarin Shell template and most important part located at those folders:

You need to copy that files into your project. Also, we have two Custom Renderers in Android and iOS project which need to be also copied:
