How to create world space UI in reality kit using Swift UI libraries?

I have an AR app and soon will be making a VisionKit version. Can we use swift library to create a world space 3D UI with features like Zstack, Buttons, etc?

Currently, I am using UI kit to do that.

Answered by Graphics and Games Engineer in 754769022

Generally speaking, yes you can use SwiftUI with RealityKit on visionOS. You'll probably want to watch the 'Build spatial experiences with RealityKit', 'Meet SwiftUI for spatial computing', and 'Meet UIKit for spatial computing' sessions releasing tomorrow June 6 for more information. Also join us on the slack workspace and in developer labs.

Accepted Answer

Generally speaking, yes you can use SwiftUI with RealityKit on visionOS. You'll probably want to watch the 'Build spatial experiences with RealityKit', 'Meet SwiftUI for spatial computing', and 'Meet UIKit for spatial computing' sessions releasing tomorrow June 6 for more information. Also join us on the slack workspace and in developer labs.

How to create world space UI in reality kit using Swift UI libraries?
 
 
Q