A small extension to handle countries within Swift
You have a country Struct with
- The Country Code
- The Country Name
- The Country Flag
Code Example :
CountryLibrary.countries
Already ordered by name
By Country Code
"FR".country(by: .code)
By Country Name
"Canada".country(by: .name)