It is a way to add and delete contents in List in SwiftUI. It seems bad to pass a delete function in closure. Please let me know if there is a better way.
Delete and add contents of List with SwiftUI
- Create a sequential numbered array in Swift
- Hide keyboard with buttons in SwiftUI
- Detect keyboard height and appearance with SwiftUI
- Input a multi-line string with SwiftUI
- Show picker from bottom with SwiftUI
- Using UIImagePickerController with SwiftUI
- Do not change the color of the Image in the Button with SwiftUI