How can I get SKEmitterNode to work in SwiftUI?
问题 I'm trying to update the colour of an SKEmitterNode within a UIViewRepresentable . The hue value is passed in from the state on the parent View, and the emitter colour should update when the hue value in the parent state updates. It initially displays, and although it updates on the first call to updateUIView it does not respond to any subsequent calls, even though the function definitely gets called with the new value of hue each time. Has anyone any idea why the emitter won't update? I'm at