Currently, I've been using XCode 8 and on the line
let range = key.startIndex...key.startIndex.advancedBy(0)
I get the error:
error: 'advancedBy' is unavailable: To advance an index by n steps call 'index(_:offsetBy:)' on the CharacterView instance that produced the index.
How can I fix this?
A screenshot of the error is below: