'SwiftUI ForEach DisclosureGroup .onDelete = Index out of range

Remove subitems work good, but remove item give me present:

"Swift/ContiguousArrayBuffer.swift:575: Fatal error: Index out of range"

Plz help! =)

App view

Code

Create data code



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source