Dynamic TableColumns with ForEach

There seems to be no way to add dynamically add table columns to SwfitUI table. I have a column of dates that I store in an array like so.

let dates = [Date]
let values = [Int]

I want one able enumerate over the dates to generate columns. However I can't seem to find a way to enumerate over them and generate my columns. My current data set has 250 columns and it will keep growing.

I would love to do

ForEach(0 ..< dates.length) { index in
    TableColumn("<some formatted date>") { 
        Text("\(value)")
    }
}

But it appears that since TableColumn is not a view ForEach can't be used. Is there a supported way to build columns dynamically? This is a Mac application.

Does charts support a for each type symantic too?

Dynamic TableColumns with ForEach
 
 
Q