Type Safely

Share this post
Add an AR Object To Your SwiftUI Preview Canvas With RealityKit
typesafely.substack.com

Add an AR Object To Your SwiftUI Preview Canvas With RealityKit

Daily Coding Tip 022

Type Safely
Jan 9, 2021
Share this post
Add an AR Object To Your SwiftUI Preview Canvas With RealityKit
typesafely.substack.com
Image by CharlVera from Pixabay

Here’s how to make the SwiftUI preview canvas an image anchor, meaning that RealityKit will automatically detect it using the camera. When the Canvas is detected, a 3D model of a steel box will appear. This is the default object when creating a blank Augmented Reality project, so I thought I’d stick with it for the sake of…

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2022 Type Safely
Privacy ∙ Terms ∙ Collection notice
Publish on Substack Get the app
Substack is the home for great writing