2

I am using apple maps in my application and I want to show in which direction the user is facing. Currently in my app it's showing like: enter image description here

But i want:

enter image description here

How can i do this?

Karthick Ramesh
  • 1,451
  • 20
  • 30
Best Moments
  • 131
  • 2
  • 11

1 Answers1

5

Go to Setting > Privacy > Location Services > System Services > Compass Calibration > Enable You will be able to see the direction the user is facing.

You can take the user to the GPS Settings by doing.

UIApplication.shared.openURL(URL.init(string: UIApplicationOpenSettingsURLString))

You can prompt the user to enable the compass calibration, but there is no way you can set it without user interaction.

Karthick Ramesh
  • 1,451
  • 20
  • 30