I'm trying to replicate a for in loop I did in Objective C but am getting an "'AnyObject' does not have a member named 'GeneratorType' error:
for (NSString *file in [dict objectForKey:@"Files"]){
NSString *content = [[source stringByAppendingPathComponent:@"Contents"] stringByA
}
Here is my Swift
for file in dict.objectForKey("Files") {
let content:String = source.stringByAppendingPathComponent("Contents").stringByAppendingPathComponent(file)
}
I've tried defining a holder variable for the dictionary. Can anyone see what I'm doing wrong here, please?