0

I am trying to get users country to help supporting good user experience in my program, is there any code to get the current location of a certain user in swift language.

1 Answers1

0

You can use the Local.current variable to get information on your user such as region code: Local.current.regionCode, language code: Locale.current.languageCode etc.

This is done without getting the specific location of the user and rather gets the information from the device settings.

Nathan
  • 949
  • 8
  • 19