I have to get the current country in the iPhone settings. Can anyone tell me how to get the current country in iPhone application.
I have to use the current country
Swift 3.0 latest working code is
if let countryCode = (Locale.current as NSLocale).object(forKey: .countryCode) as? String { print(countryCode) }