Apologies for the delay in responding.
Removing the enum allowed me to find another issue whereby model insertion seemed to be happening in a strange order. Adding some direct calls to modelContext.save() cured that.
I'm still a little confused though as the model concerned sets the enum value as a default, yet when the inserts were being done they seemed to use a totally uninitialized model object with none of the default values assigned. Is this expected?
However, all now works as expected and my debugging knowledge has improved :-)
Topic:
UI Frameworks
SubTopic:
SwiftUI