-1

I have a form that includes a NavigationLink and I'm expecting it to be enabled (tappable) after tapping the EditButton, but that's not happening. This is my code:

enter image description here

Mohammed
  • 1,432
  • 4
  • 18
  • 34
  • One thing I would suggest is moving the `Form` into a custom subview, into which you move all your navigation links and, crucially, the `.editMode` environment variable – leaving the `EditButton()` in the higher-level `DraftUI` view. I've found that gives much more reliable behaviour in reading the edit mode. – ScottM Nov 30 '22 at 10:53
  • I tried. Nothing changed. – Mohammed Dec 01 '22 at 10:03

1 Answers1

0

Replace this

editMode?.wrappedValue.isEditing != true

to

editMode?.wrappedValue == .inactive
마요Mayo
  • 86
  • 6