Swift 3 JSON NSFastEnumerationIterator has no subscript members

Just use native Swift Array. Use always Swift native types unless you have absolutely no choice. NSArray lacks type information so the compiler cannot infer that the array contains dictionaries.

if let datas = dict["data"] as? [[String:Any]] {

Leave a Comment