I've looked at a few different posts on here and I cant seem to get what I'm specifically trying to do to work. I'm trying to declare an empty array of dictionaries. The problem is every time I try to iterate over each dictionary in the array(without running) I get an error basically saying that the way I set up the array isn't correct. This code is in my slide to delete function so it can't be run without the user populating the array of dicts first. Here is my code.
var leagueList = [Dictionary<String, Array<String>>]()
for dict in leagueList {
let key = dict.key as String!
if key == deletedAge {
self.leagueList.removeValue(forKey: deletedAge!)
}
}
dict.keyto do? Dictionaries can have more than one key.