Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What it is

  • This app is an introduction to RealityKit, which renders AR content in SwiftUI context.
  • The app creates a cube mesh, and RealityKit places it in the camera view once it detects a horizontal plane. There is a button that you can tap on to scale the cube mesh by a factor of two every time you tap it.
  • The purpose of this app is to give you a quick glance at how you can make AR content in SwiftUI using RealityKit.
  • Note that in the session I didn't go over the code line by line so some code in this app might seem confusing. One way you can learn is by going to ChatGPT and ask what this line does in the whole app.

Installation & Run

  • To run the app, simply clone this repo to your local end or download it directly and then open on Xcode.
  • Please make sure you are connecting your macbook to a physical iPhone device to test, as AR doesn't work in preview or simulator.
  • You might face some configuration issues if this is your first time running an AR app, but you can generally solve it by following Xcode's guide. If you can't figure it out, try google and then ask us.
  • When you run the app on your iPhone, move around a little bit because your camera needs to detect a horizontal plane (the floor) before it decides to place the cube in there.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages