Over the holidays a month ago, I decided to spend some time to try out RealityKit and RealityComposer.
Apple did a good job with making the construction of a simple AR app really easy. Here is how you can create your own simple AR app in 15 minutes.
It took me a lot more than 15 minutes because I had to upgrade XCode to XCode 12, and in order to do that I had to upgrade to Big Sur…
Assuming you’ve done all of that, and you have connected your iOS device and XCode has prepared all the team and provisioning stuff for you, here is how to create a codeless AR app in 15 minutes.
There is an Augmented Reality App template. Select that.
This is what I selected. Since this is an example just for fun, I didn’t ask it to generate tests. Clicking next will generate a simple AR project for you.
If you build and run the generated project on your iOS device without making any changes, it will place a grey box on any horizontal surface it finds.
That’s pretty boring, so we will take the next 5 minutes in doing something interesting so that it doesn’t seem like a generated project.
In the list of generated files, go to the generated Experience.rcproject, and select “Open in Reality Composer”
There are two things you have to know — anchors and entities. Anchors are what entities get attached to. The entities will move/rotate with the anchors in the real world once the virtual anchors defined here are…