Skip to content

Delete and add contents of List with SwiftUI

   

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.

AddDeleteList

  1. Create a sequential numbered array in Swift
  2. Hide keyboard with buttons in SwiftUI
  3. Detect keyboard height and appearance with SwiftUI
  4. Input a multi-line string with SwiftUI
  5. Show picker from bottom with SwiftUI
  6. Using UIImagePickerController with SwiftUI
  7. Do not change the color of the Image in the Button with SwiftUI