UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

Communication between windows in visionOS

Forums > SwiftUI

On VisionOs, Is it possible to update a list in a flat window from a volumetric window in real time ? The scenario is : I have a list of objects defined in a class according to SwiftData (the list is created using a query). Cliquicking on a buton on each item opens a new volumetric window with a RealityKit model depending on the object persisted in swiftdata and listed. Those object are modified in time based on a timer (the object is melting) that can be paused by a touch gesture. I would like to keeptrack in real time of the progress of the melting in each list item. Is it possible ? If yes which is the optimal way ? (I kind of manage to do it by modifiying the swiftdata object on each timer tick, but it looks terribile in terms of performance (I only need to update the info for each % of he progress and I don't tink it is good to persist it in the database every second...

   

Hacking with Swift is sponsored by RevenueCat.

SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.

Click to save your free spot now

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.