If you are trying to put multiple buttons inside of a list item, make sure you put .buttonStyle(.plain)
on the parent most component in the list item. This caused me a some confusion on why it was deleting the wrong element of the inner list.
A developer's rambling
If you are trying to put multiple buttons inside of a list item, make sure you put .buttonStyle(.plain)
on the parent most component in the list item. This caused me a some confusion on why it was deleting the wrong element of the inner list.