Skip to content

Instantly share code, notes, and snippets.

@tempire
Created September 9, 2015 04:09
Show Gist options
  • Save tempire/8ade50cca44c4b3a491f to your computer and use it in GitHub Desktop.
Save tempire/8ade50cca44c4b3a491f to your computer and use it in GitHub Desktop.
swift substr
//let last6 = Range(start: advance(item.id.endIndex, -6), end: item.id.endIndex)
//label.text = item.id.substringWithRange(last6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment