Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    This answer also uses the array index as the item identifier, which is bad practice. ItemType should conform to Identifiable and id should be \.1, referring to the element, not the index. See the answer by @onmyway133 Commented Jan 23, 2024 at 11:45
  • 1
    thanks, you're right. I've updated the post and added more explanation Commented Jan 23, 2024 at 14:54
  • 1
    Thank you! I also conformed the view to DynamicViewContent to allow for things like .onMove { } Commented May 4, 2024 at 20:40