Type Safely

Type Safely

Share this post

Type Safely
Type Safely
Add an AR Object To Your SwiftUI Preview Canvas With RealityKit
Copy link
Facebook
Email
Notes
More

Add an AR Object To Your SwiftUI Preview Canvas With RealityKit

Daily Coding Tip 022

Type Safely's avatar
Type Safely
Jan 09, 2021
∙ Paid

Share this post

Type Safely
Type Safely
Add an AR Object To Your SwiftUI Preview Canvas With RealityKit
Copy link
Facebook
Email
Notes
More
Share
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…

Keep reading with a 7-day free trial

Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Type Safely
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More