How to reduce the amount of currency codes you get back from NSLocale.Key.currencyCode
问题 I have an ios app that I'm trying to allow the users to select which currency they want to use. Right now I have the full list of currencies but there seem to be some duplicates there such as: Is there a way to filter out the others? The dollar isn't the only one with multiples some have date ranges listed with them. I'm sure there is some built-in method that does this, but my searching so far hasn't pointed me in the right direction. Here is what I am doing: let locale = NSLocale.current as