Easily create your first AR app using SwiftUi and RealityKit
In this blog, you will get a brief about making your first Basic AR app on iOS
Step 1:
Open XCode and select the Augmented Reality app
Step 2:
Give a name to your app and select SwiftUi and RealityKit as the preferred technology
Step 3:
Once the app template is created, click Experience. rcproject and click open in Reality composer (indicated by arrow)
Now the Reality Composer app will be opened. There are many options available in the reality composer app. For the sake of this blog, we will see the basic functionality.
Step 4:
Click Behaviors as indicated
Step 5:
Now add the Tap and Action behaviour and select the affected objects without fail. Click choose and select the 3d cube on each section.
Step 6:
Once that is set, click play in the app.
Now you will see the cube does some action on tap.
Save this file and go to Xcode to run the app on a physical device.
Note: AR apps cannot run in a simulator
More about AR can be found in this article
https://medium.com/@rockyshikoku/the-reference-book-of-realitykit-cf9babb86dd
That’s it.!
If you like this blog, do follow and clap. Thanks!