Testing the project
And with that, the project is done. Let’s come back to ContentView
and test everything out. If you hit the Play button in the Preview window or run it in the simulator, you should see that the record won’t start spinning until the player’s arm is directly over the record. As the record starts spinning, you should hear a golden oldy from the big band era of the 40s, complete with the scratchy intro sound that old records were notoriously famous for. You will also notice that the text on the button changes from Play to Stop, and the color of the button changes from black to red, as shown in this figure:
Figure 4.11: The spinning record
When you press Stop, the arm goes back to its original place, the record stops, and the Play button will reappear again.
After all of that, that completes our second project!