I want to know how to get rest of string after specific character.
I have checked link
but have not found answer.
Consider following code:
let fullString = "Blue Sky"
let spaceIndex = fullName.index(of: " ")!
I know i can get first string before like that:
let firstString = fullString[fullString.startIndex..<spaceIndex] // "Blue”
But let firstString = fullString[fullString.startIndex..>spaceIndex] // "Blue”
not work.
What i want is - "Sky". How to get it?