Ep. 017 // Storing 3D Models in Firebase Cloud Storage for RealityKit + SwiftUI Apps

Опубликовано: 06 Июнь 2026
на канале: Reality School
3,662
71

OVERVIEW
Welcome to our RealityKit + SwiftUI Course! In this course, you’ll learn how to build an AR furniture app for iPhone and iPad.

In this video, we’ll go over how to store 3D models and Thumbnail Images in the cloud using Firebase Cloud Storage.

When completed, our app will behave in the exact same way as before but instead of bundling our assets with the app, we are now retrieving them from cloud storage. This is a much more scalable solution and gets our app one step closer to production readiness.

This video is part of the RealityKit + SwiftUI Course playlist:    • RealityKit + SwiftUI Course  

***

TABLE OF CONTENTS
00:00 - Introduction
00:28 - Hardware and Software Used
00:35 - Action Items for This Video
01:29 - Step 1: Install the Firebase SDK with Swift Package Manager
02:02 - Step 2: Create a new Firebase Project in the Firebase Console
03:16 - Step 3: Add Firebase Initialization Code
03:42 - Step 4: Enable Anonymous Authentication
05:37 - Step 5: Create a Firestore Database to Store Metadata for the 3D Models
06:12 - Step 6: Create a New Collection in Firestore and Add Model Metadata
07:19 - Step 7: Refactor Codebase to Read Model Metadata from Firebase
10:51 - Step 8: Upload USDZ Models and Image Thumbnails to Firebase Cloud Storage
11:32 - Step 9: Create a Helper Method to Download Thumbnails and USDZ Models from Firebase Storage
13:52 - Step 10: Refactor the Model Class to Use Thumbnails and USDZ Models Retrieved from Firebase Storage
16:25 - App Demo
16:57 - Wrap Up

***

LINKS
Installing Firebase with the Swift Package Manager: https://firebase.google.com/docs/ios/...
Firebase Anonymous Authentication: https://firebase.google.com/docs/auth...
Reading Data from Firebase Firestore: https://firebase.google.com/docs/fire... AND    • SwiftUI: Fetching data from Firestore in r...   AND    • Mapping Firestore documents using Swift Co...  
Downloading Files from Firebase Cloud Storage: https://firebase.google.com/docs/stor...

***

LEGAL DISLCAIMER
This course and all corresponding materials (e.g. source code) are provided on an “AS IS” basis, without warranty of any kind, express or implied, including but not limited to warranties of merchantability, fitness for a particular purpose, and non-infringement.

***

Source Code
https://gist.github.com/realityschool...

#RealityKit, #ARKit, #SwiftUI