Why are emoji characters like ๐ฉโ๐ฉโ๐งโ๐ฆ treated so strangely in Swift strings?
This has to do with how the String type works in Swift, and how the contains(_:) method works. The ‘๐ฉโ๐ฉโ๐งโ๐ฆ ‘ is what’s known as an emoji sequence, which is rendered as one visible character in a string. The sequence is made up of Character objects, and at the same time it is made up … Read more