....you need to hold a collection containing name, id, cname and qrcode.
How do you want to have it? I want an HStack with qrcode on the left while on the right there is a VStack showing cname, name, and id respectively.
It would just show that data in the CardRow. The list is calling CardRow with the data:
List {
ForEach(cards) { cards in
NavigationLink(destination: CardFullView(cname: [how AddView() provides cname])) {
CardRow(cname: [how AddView() provides cname], name: [how AddView() provides name], id: [how AddView() provides id])
}
}
.onDelete(perform: onDelete)
.onMove(perform: onMove)
}
CardRow automatically generates a QR code from what id provides.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: