Presenting the Augmented Reality View
When the user taps the Done button, the AR view is dismissed and the distance view is shown again. Then the user should walk to another place and pass the iPhone to another player. This player can then use the distance information to find the text location. In this section, we’ll program our app to show the stored world map when the user is within 10 meters of the stored location and can start searching the ground for the text using the AR view.
We already have a method that presents the AR view to the user. But we need to tell the ARViewController instance whether it should load the stored world map. Add the following property to ARViewController:
| var shouldRestore ... |
Get Build Location-Based Projects for iOS now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.