enumerate is unavailable call the enumerate method on the sequence

Solutions Collect From Internet About “enumerate is unavailable call the enumerate method on the sequence”

In Swift 2, enumerate is not a global function anymore, it’s an extension of SequenceType.

Call it directly on the sequence to enumerate like this:

for (index, key) in row.enumerate() {
    // ...
}