Appendix D

Hands-On Activities

Hands-On: Codeless Anchors

With one minor exception, everything that you did using Swift in the last exercise can be recreated using Reality Composer Pro—without writing a single line of code. That is the goal of this exercise. When I originally considered this example, I felt it might not be worth including. Code was simply better and faster. The more I think about it, however, this might very well become your preferred way to establish at least some of your anchors.

For example, in the coded exercise, it took several dozen lines to set the anchor targets, load models, rotate objects, and so on. You can do the same thing via the tools you already know in Reality Composer Pro and still have access to the entities ...

Get Apple Vision Pro for Creators: A Beginner's Guide to Building Immersive Experiences 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.