Hi, I am a beginner to swiftui development. I am looking for a way to create a view like the following:
Other than adding and removing, I would also like it to support reordering by drag and drop, and renaming by double clicking.
Since similar views are implemented across applications from apple and third party developers, I was thinking that there should be an intuitive way to do so.
However, the best I could do was:
List(outboundExample, id: \.tag) { outboundObject in
Text(outboundObject.tag)
}
.navigationTitle("Servers:")
.listStyle(.bordered(alternatesRowBackgrounds: true))
.moveDisabled(false)
.frame(width: 100.0)
.padding()
Which creates a list box that looks similar but without the editing buttons on the bottom, and cannot be clicked on.
I tried googling, and look into the swiftui documentation. However, most of the resources out there are either about iOS, or explains how to edit list with swiping. I just want this simple interface.
Thank you in advance for any help!