I have an array of dictionary's that is setup like this:
var tableViewData: [Dictionary<String, String>] = []
If I print the tableViewData it looks like this:
[["End Time": "01:31 PM", "Date": "09-25-2019", "Duration": "23", "Start Time": "01:08 PM"], ["Start Time": "01:31 PM", "End Time": "01:54 PM", "Duration": "23", "Date": "09-25-2019"]]
I have enumerating and using a for loop but I can't seem to get the data to come out how I would like.
I have tried following these other questions on stack overflow but I don't think their data is setup quite the same way as mine
How do I iterate through a [String:[String]] Dictionary in Swift
Swift for loop: for index, element in array?
My goal is to just pull the value entries for each row so I can save to a CSV.
I want it to look like this:
Date, Start Time, End Time, Duration
09-25-2019, 01:08 PM, 01:31 PM, 23
09-25-2019, 01:31 PM, 01:54 PM, 23