I Had a similar issue when passing a Core Data value between views.if I recall correctly I solved it by also including the @Environment(\.managedObjectContext) (possibly also the @FetchRequest as well) into the DetailView. When toggling the value the view then updated once the managed object was saved to the context.
Post
Replies
Boosts
Views
Activity
Making sure that you have imported Foundation:
print(String(format: "%.2f", 123.4567))