Testing the application

That's it! Now we can test the application.

If you have two devices, then you can test this out. Host the app on one device. On the other device, click Join, and this will open a new view in which you can select the Host. Click on it. The host will get a notification telling you to Accept or Decline the connection. When they are connected, it will show Connected on the client device. Click Done.

The client now waits for the host to send the map information. The client screen will be black until it receives the map information, so don't worry.

Now the host can map the surrounding. When the Send Map button is hit, it can send the data to the client.

The client device will take a second to receive the data, and the camera will ...

Get Swift Game Development - Third Edition 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.