Is it possible to use SwiftUI animation to animate entities in a RealityView?

Hi,

I've watched the WWDC23 talk on SwiftUI Animation, and several on using RealityKit and RealityView for visionOS, and was wondering if it was possible to use the animation API to animate values on RK Entities? I haven't seen this mentioned, but seems like it could be possible through animating state values on the view that are then accessed in the RealityView update closure. One particular reason for being interested in this is that the spring / bounce options for SwiftUI don't appear to be present in the RK Animation API's (although maybe I've missed this).

Has anyone explored this? I've only touched on it a little myself with no luck, but wanted to ask before spending more time investigating it as an option.

Thanks, Shane

Is it possible to use SwiftUI animation to animate entities in a RealityView?
 
 
Q