How to find the nth letter of a string in swift programming?

let start = playground.startIndexlet end = playground.index(start, offsetBy:4) (error:value of type string has no member index)let fifthCharacter = p

let start = playground.startIndex
let end = playground.index(start, offsetBy:4) (error:value of type string has no member index)
let fifthCharacter = playground[end]

or:let start = playground.startIndexlet end = playground.index(start, offsetBy:4) (error:value of type string has no member index)let fifthCharacter = playground[end]

Tags:playground,string,letter,error,