ItsKazBorn
ItsKazBorn

Reputation: 19

A way to dynamically move userLocation while testing/showcasing iOS app?

I know of the GPX files, and I am using them, but i find them a hassle both to create and use, and I wanted to freely move the userLocation around a region and not just teleport it from place to place.

I was thinking of creating a function to move the userLocation by clicking the point you want in the map and teleporting there or moving X meters in the click's direction, the problem is that userLocation is get only.

I have to hand in this app and it must be functional with userLocation implemented, so I cannot go around by creating a different annotation and moving that around.

This feature would only be used to showcase the app without needing to actually walk around campus and while testing.

Does anyone have any workaround to move userLocation around without needing GPX files?

I have mapped all locations I want to "walk" to in GPX files, as seen in the image bellow, but I don't want to be "teleported" there as the debug menu does.

enter image description here

Upvotes: 0

Views: 211

Answers (1)

binaryPilot84
binaryPilot84

Reputation: 1032

Within the simulator, you can test what the location changes. From the menu, select Debug -> Location. From there, you should have multiple options to choose from. "City Run," "City Bicycle Ride" or "Freeway Drive" are all options that will continue to update and move throughout the simulation.

Upvotes: 2

Related Questions