Diploma in Apple Development πŸŽπŸ‘©πŸ»β€πŸ’»: Coding 2: Lecture 1: Introduction to the Block 2 and Coding 2 unit. What's new in RealityKit and Tiny Treasure Trove.
Back to slide index.
πŸ‘‹πŸ» Hi! Welcome to Block 2! Well done on completing Block One! πŸŽ‰
First, don't forget to confirm your attendance using the Seats Mobile app!
Second, I'm going to start every lecture with a meditation from the fantastic Sitting Still Like a Frog book, all read by Myla Kabat-Zinn. If you don't want to participate that's completely fine.
Let's start by looking at the homepage for Block 2, which is below that of Block 1: https://jgl.github.io/DiplomaInAppleDevelopment-2025-2026/.
Let's move on by reviewing the README.md for Block 2 on the Apple Diploma GitHub: https://jgl.github.io/DiplomaInAppleDevelopment-2025-2026/. Don't forget to make note of the assessment schedule in your own calendars. As you know from Block One, assessment will be upon you before you know it! Tutorials will continue as normal on Monday mornings - please mark these in your calendars too - I'll post reminders on Fridays.
Let's continue by looking at the wiki for Block 2 on the Apple Diploma GitHub: https://github.com/JGL/DiplomaInAppleDevelopment-2025-2026/wiki, paying particular attention to the external resources page: https://github.com/JGL/DiplomaInAppleDevelopment-2025-2026/wiki/External-Resources
Block 2 is going to be different to Block 1, based on feedback from your course representatives. Coding 2 is going to be all about tearing apart Apple example code as a group, with you taking control some of the time. Spatial 2 is going to be much more like a studio, with each of you developing your own playful app, based around a key spatial moment. Please ask questions - don't be afraid to ask when you don't understand - that's on me, not you!
I want you all to get comfortable exploring WWDC videos and the example code and article sections of each of these APIs: visionOS, RealityKit and SwiftUI. Remember how to find example code and articles within a specific part of developer.apple.com? I'd also like you to explore all of the content on Step Into Vision - there is source code and articles available there for just about anything you can do on visionOS. Make use of these resources!
Remember that hand and other RealityKit anchor based interactions are only useable when using the headset - not in the simulator. That's why it's really important to get into a regular schedule of time with a headset - I'd suggest doing this on Tuesday, Thursday and Friday afternoons. Remember you'll need to book out the headset from the technician on duty and return it before the end of the day - I'd aim for 1400-1700. Perhaps find a buddy to work with regularly? I'd suggest at least one afternoon a week to work together, testing each other's work and supporting each other. Friday presentations will be all about presenting the work that you've done in the past two weeks. Any questions?
We are going to start with the latest code, which is the most useful to you in Spatial 2, before going back in time to earlier examples.
Let's start as we mean to go on, by first reviewing a video from WWDC25: What’s new in RealityKit.
Now, let's all download the linked example code: Integrating virtual objects with your environment aka Tiny Treasure Trove. First thing to do is to get it building on your computers - do you get a build error too? What version of macOS and Xcode are you running? I have a fix!
Now let's tear this app apart - who wants to start by coming up to the front? Don't worry, I'll keep rotating people every 5 minutes. Start the countdown!
Thanks! As always, please review all today's content as homework.
Back to slide index.