ForEach Question

Hi All,

I am getting a couple of stored Attributes from Core data and with to display it in a list using List and ForEach

The .name value list fine… how do I also include on the same line within the list also the other values such as entry.litres

Hope that makes sense. Thanks Craig.

      List {
        ForEach(entry, id: \.id) { entry in Text( ?? "Unknown")

Do you mean something like this?

List {
    ForEach(entry, id: \.id) {
        HStack {
            Text( ?? "Unknown")
            Text(entry.litres ?? "0")

Hey that worked… Thanks…

Still have a few problems but I will keep at it.

Again thank you for the terrific help