RealityKit & ARKit in SwiftUI — Tap to Place an Item

DevTechie
DevTechie
Published in
5 min readMay 24, 2024

--

RealityKit & ARKit in SwiftUI — Tap to Place an Item

We can interact with objects in the virtual world, so let’s start by detecting the user’s tap to place items at the tapped location.

We will begin by creating a coordinator class. Coordinators in SwiftUI are used to act as delegates for UIKit views and controllers. In UIKit, the delegate objects respond to events when the user presses a button or taps elsewhere in the app.

--

--