scenekit embedded in swiftui views, animation cancles on every updateView

Hi folks, i have a swiftui app with a custom view (derived from UIRepresenatble) in this view i load a scenekit scene and start an animation to rotate an object this all works! but when the whole thing gets updated, my custom view gets updated too and the former working animation stops!

Please tell me what i'm doing wrong!

Sincerely, Wolfi

scenekit embedded in swiftui views, animation cancles on every updateView
 
 
Q