A better way to access String in Swift (Perhaps!)

Anybody who went on to work with Strings in Swift has faced this – you can’t use integer indices to access characters in the String. Why? Because according to Official Swift Guide from Apple, every Character instance in Swift is an Extended Grapheme Cluster (read more @ https://goo.gl/xUsMv9 ). Long story short – it’s due to handling Unicode character set.  So how do you get a better way? (Better from the perspective that you have to write less code)

Continue reading “A better way to access String in Swift (Perhaps!)”