Converting ISO country codes to country names using Locale

Because IPinfo's open API always returns country codes, I needed to convert them to country names for better address formatting. For example, 1.1.1.1 returns AU for Australia. The authenticated tiers (free Lite and paid Core / Plus ) have both codes and names, but the open API doesn't. At first I hoped this would do the trick: let postalAddress = CNMutablePostalAddress ( ) postalAddress .…